* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: #fff;
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    justify-content: center;
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 60px;
}

.logo {
    width: 180px;
    height: 180px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.logo-section h1 {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 5px;
}

.logo-section h2 {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 6px;
    border: 2px solid #fff;
    padding: 5px 20px;
    display: inline-block;
}

/* Login Options */
.login-options {
    width: 100%;
    max-width: 360px;
}


/* Form Elements */
.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #4a4a4a;
    background-color: #333;
}

.form-control::placeholder {
    color: #888;
}

input.form-control {
    color: #fff !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #2a2a2a inset !important;
    -webkit-text-fill-color: #fff !important;
}

/* Password Field */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
}

.toggle-password:hover {
    color: #fff;
}

/* Forgot Password */
.forgot-password {
    text-align: right;
    margin-bottom: 20px;
}

.forgot-password a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #fff;
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 16px;
    background-color: #4a7c9e;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.btn-login:hover {
    background-color: #5a8cae;
}

.btn-login:active {
    transform: scale(0.98);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Alert Messages */
.alert-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.alert-message.error {
    background-color: rgba(255, 0, 0, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.alert-message.success {
    background-color: rgba(0, 255, 0, 0.2);
    color: #4caf50;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

/* Register Section */
.register-section {
    text-align: center;
    margin-top: 40px;
}

.register-section p {
    font-size: 16px;
    color: #888;
}

.register-section a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.register-section a:hover {
    color: #4a7c9e;
}

/* Modal Customization */
.modal-content {
    background-color: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 15px;
}

.modal-header {
    border-bottom: 1px solid #3a3a3a;
}

.modal-footer {
    border-top: 1px solid #3a3a3a;
}

.modal-title {
    color: #fff;
}

.btn-close-white {
    filter: invert(1);
}

/* Responsive Design */
@media (max-width: 480px) {
    .logo-section h1 {
        font-size: 28px;
        letter-spacing: 6px;
    }
    
    .logo-section h2 {
        font-size: 16px;
        letter-spacing: 4px;
    }
    
    .logo {
        width: 150px;
        height: 150px;
    }
    
    .form-control {
        font-size: 16px;
    }
}

/* iOS specific styles */
@supports (-webkit-touch-callout: none) {
    input {
        font-size: 16px !important;
    }
}

/* Register Modal Specific */
.register-modal-content {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    border: none;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.register-modal-body {
    padding: 30px 40px;
}

.btn-close-custom {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.btn-close-custom:hover {
    opacity: 1;
}

/* Register Header */
.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.register-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

.register-title {
    font-family: 'Barlow', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.register-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Form Fields */
.form-field {
    margin-bottom: 16px;
}

.register-input {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.register-input:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #007aff;
    box-shadow: 0 0 0 0.2rem rgba(0, 122, 255, 0.25);
    color: #fff;
    outline: none;
}

.register-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Phone Input Group */
.phone-input-group {
    display: flex;
    gap: 10px;
}

.country-selector {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.country-selector:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.country-flag {
    font-size: 20px;
}

.country-code {
    font-size: 14px;
    font-weight: 600;
}

.country-selector i {
    font-size: 10px;
    opacity: 0.7;
}

.phone-input {
    flex: 1;
}

/* Password Input Group */
.password-input-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 5px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #fff;
}

/* Field Feedback */
.field-feedback {
    font-size: 12px;
    margin-top: 5px;
    min-height: 16px;
}

.field-feedback.valid {
    color: #00ff00;
}

.field-feedback.invalid {
    color: #ff6b6b;
}

/* Password Validation */
.password-validation {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.validation-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.validation-item:last-child {
    margin-bottom: 0;
}

.validation-item i {
    font-size: 8px;
    transition: color 0.3s ease;
}

.validation-item.valid {
    color: #00ff00;
}

.validation-item.valid i {
    color: #00ff00;
}

.validation-item.invalid {
    color: #ff6b6b;
}

.validation-item.invalid i {
    color: #ff6b6b;
}

/* Info Section */
.register-info-section {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    font-size: 14px;
}

.info-item:first-child i {
    color: #007aff;
}

.info-item:last-child i {
    color: #ff9500;
}

/* Submit Button */
.btn-register-submit {
    width: 100%;
    background-color: #007aff;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-register-submit:hover:not(:disabled) {
    background-color: #0051d5;
    transform: translateY(-1px);
}

.btn-register-submit:disabled {
    background-color: rgba(0, 122, 255, 0.4);
    cursor: not-allowed;
}

/* Country Dropdown */
.country-dropdown {
    position: fixed;
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 300px;
    max-height: 400px;
    overflow: hidden;
    z-index: 9999;
}

.country-search {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.country-search-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    padding: 8px 12px;
    font-size: 14px;
}

.country-search-input:focus {
    outline: none;
    border-color: #007aff;
}

.country-list {
    max-height: 350px;
    overflow-y: auto;
}

.country-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.country-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.country-item.selected {
    background-color: rgba(0, 122, 255, 0.2);
}

.country-item-flag {
    font-size: 20px;
}

.country-item-name {
    flex: 1;
    font-size: 14px;
}

.country-item-code {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Success Modal */
.success-modal-content {
    background-color: #1a1a1a;
    text-align: center;
    padding: 40px;
}

.success-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.success-icon.approved {
    color: #00ff00;
}

.success-icon.pending {
    color: #ff9500;
}

.success-title {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.success-message {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.success-username {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.success-username-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.success-username-value {
    font-size: 20px;
    font-weight: 600;
    color: #00ff00;
}

/* Biometric Login */
.divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%);
}

.divider span {
    position: relative;
    display: inline-block;
    padding: 0 15px;
    background-color: #000;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.btn-biometric {
    width: 100%;
    padding: 15px;
    background-color: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-biometric:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #cc9900;
    color: #cc9900;
}

.btn-biometric i {
    font-size: 20px;
}

@media (max-width: 768px) {
    .modal-dialog-lg {
        max-width: 100%;
        margin: 0;
    }
    
    .register-modal-body {
        padding: 20px;
    }
    
    .phone-input-group {
        flex-direction: column;
    }
    
    .country-selector {
        width: 100%;
    }
}

/* Terms and Privacy Checkbox Styles */
.terms-field {
    margin: 20px 0;
}

.terms-checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.terms-checkbox-container input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 2px;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.terms-text {
    line-height: 1.4;
}

.terms-text a {
    color: #cc9900;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.terms-text a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Terms and Privacy Modal Styles */
.terms-content {
    font-size: 14px;
    line-height: 1.6;
    color: #ffffff;
}

.terms-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.terms-section:last-of-type {
    border-bottom: none;
}

.terms-section h6 {
    color: #cc9900;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 15px;
}

.terms-section p {
    text-align: justify;
    margin-bottom: 10px;
    color: #ffffff;
}

.terms-section ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.terms-section ul li {
    margin-bottom: 8px;
    color: #ffffff;
}

.terms-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.terms-footer p {
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.8);
}

/* Modal customizations */
#termsModal .modal-dialog,
#privacyModal .modal-dialog {
    max-height: 90vh;
}

#termsModal .modal-content,
#privacyModal .modal-content {
    background-color: #2d2d2d;
    border: 1px solid rgba(204, 153, 0, 0.3);
}

#termsModal .modal-header,
#privacyModal .modal-header {
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid #cc9900;
}

#termsModal .modal-title,
#privacyModal .modal-title {
    color: #cc9900;
    font-weight: 600;
}

#termsModal .modal-body,
#privacyModal .modal-body {
    max-height: calc(90vh - 120px);
    overflow-y: auto;
    padding: 30px;
    background-color: #2d2d2d;
}

#termsModal .btn-close,
#privacyModal .btn-close {
    opacity: 0.5;
    filter: invert(1);
}

#termsModal .btn-close:hover,
#privacyModal .btn-close:hover {
    opacity: 1;
}

#termsModal .modal-footer,
#privacyModal .modal-footer {
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}