/* REG STYLES - v3.0 */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Montserrat, system-ui, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #00564d;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Login page specific styles */
body.login-page {
    background-color: #131416;
}

body.login-page .container {
    max-width: 500px;
}


.container {
    width: 100%;
    max-width: 400px;
    position: relative;
}

/* Policy page specific styles */
body.policy-page .container {
    max-width: 800px;
}


/* Registration Form */
.registration-form {
    background-color: #05403a;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Login Form */
.login-form {
    background-color: #202328;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.title {
    color: #fbffff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: left;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

/* Password Container */
.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input {
    padding-right: 45px;
}

/* Disable browser's built-in password toggle */
.password-input::-ms-reveal,
.password-input::-ms-clear {
    display: none;
}

.password-input::-webkit-credentials-auto-fill-button {
    display: none !important;
}

.password-input::-webkit-strong-password-auto-fill-button {
    display: none !important;
}

/* Firefox */
.password-input::-moz-credentials-auto-fill-button {
    display: none !important;
}

/* Disable browser validation messages */
input:invalid {
    box-shadow: none;
}

input:invalid:focus {
    box-shadow: none;
}

/* Disable browser validation popup */
input[type="checkbox"]:invalid {
    box-shadow: none;
}

/* Prevent browser validation messages */
form {
    novalidate: true;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #73a7a3;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.password-toggle:hover {
    color: #fbffff;
    background-color: rgba(115, 167, 163, 0.1);
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

.eye-icon {
    display: block;
    font-size: 16px;
    line-height: 1;
}

.label {
    display: block;
    color: #fbffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    background-color: #05403a;
    border: 1px solid #73a7a3;
    border-radius: 8px;
    color: #fbffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #fbffff;
    box-shadow: 0 0 0 2px rgba(251, 255, 255, 0.1);
}

.input-field::placeholder {
    color: #73a7a3;
}

.input-field.error {
    border-color: #ff6b6b;
}

.input-field.valid {
    border-color: #51cf66;
}

.hint {
    color: #73a7a3;
    font-size: 12px;
    margin-top: 4px;
}

.error-message {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 4px;
    min-height: 16px;
}

/* Promo Code Link */
.promo-link {
    margin-bottom: 20px;
}

.link {
    color: #fbffff;
    text-decoration: underline;
    text-decoration-style: dashed;
    font-size: 14px;
    transition: color 0.3s ease;
}

.link:hover {
    color: #73a7a3;
}

/* Agreement Checkbox */
.agreement-group {
    margin-bottom: 30px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

.checkbox-container input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    cursor: pointer;
}

.checkmark {
    width: 18px;
    height: 18px;
    background-color: #05403a;
    border: 1px solid #73a7a3;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background-color: #73a7a3;
    border-color: #73a7a3;
}

.checkbox-container input[type="checkbox"]:invalid + .checkmark {
    border-color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
}

.checkbox-container.error .checkmark {
    border-color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #00564d;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.agreement-text {
    color: #8a9b9a;
    font-size: 12px;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.agreement-link {
    color: #8a9b9a;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.agreement-link:hover {
    color: #73a7a3;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background-color: #73a7a3;
    color: #00564d;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.submit-btn:hover {
    background-color: #5a8a85;
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background-color: #4a6b67;
    cursor: not-allowed;
    transform: none;
}

/* Warning Text */
.warning-text {
    color: #73a7a3;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 20px;
    padding: 12px;
    background-color: rgba(115, 167, 163, 0.1);
    border-radius: 6px;
    border-left: 3px solid #73a7a3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.warning-text strong {
    color: #fbffff;
    font-weight: 600;
}

.warning-link {
    color: #fbffff;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.warning-link:hover {
    color: #73a7a3;
}

/* Login Link */
.login-link {
    text-align: center;
    color: #fbffff;
    font-size: 14px;
}

.login-link .link {
    text-decoration: none;
    font-weight: 600;
}

/* Phone Number Formatting */
.phone-formatted {
    color: #fbffff;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .registration-form {
        padding: 30px 20px;
    }
    
    .title {
        font-size: 24px;
    }
    
}

/* Animation for form validation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.input-field.shake {
    animation: shake 0.5s ease-in-out;
}

/* Loading state */
.submit-btn.loading {
    position: relative;
    color: transparent;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #00564d;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Login Button */
.login-btn {
    width: 100%;
    background-color: #00a392;
    color: #fbffff;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.login-btn:hover {
    background-color: #008a7a;
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    background-color: #4a6b67;
    cursor: not-allowed;
    transform: none;
}

/* Forgot Password Link */
.forgot-password {
    margin-top: 15px;
    margin-bottom: 10px;
}

.forgot-link {
    color: #00a392;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #008a7a;
    text-decoration: underline;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success page styles */
.success-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid #73a7a3;
    border-top: 4px solid #fbffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Policy Content Styles */
.policy-content {
    color: #fbffff;
    line-height: 1.6;
}

.policy-content h2 {
    color: #fbffff;
    font-size: 24px;
    font-weight: 600;
    margin: 20px 0 15px 0;
    border-bottom: 1px solid #73a7a3;
    padding-bottom: 5px;
}

.policy-content p {
    color: #73a7a3;
    font-size: 18px;
    margin-bottom: 20px;
}

.back-link {
    margin-top: 30px;
    text-align: center;
}

.back-link .link {
    color: #fbffff;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-link .link:hover {
    color: #73a7a3;
}
