/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

html {
    height: 100%;
}

body {
    background-color: var(--background-color);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Container */
.auth-container {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: var(--white-color);
    display: flex;
    flex-direction: column;
}

.login-logo {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    text-align: center;
    background-color: var(--white-color);
    z-index: 10;
}

.login-logo img {
    height: 40px;
    width: auto;
}

/* Auth Card */
.auth-card {
    position: fixed;
    top: 100px;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--background-color);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 50px;
    padding-top: 90px;
    padding-bottom: calc(30px + env(safe-area-inset-bottom));
}

/* Auth Tabs */
.auth-tabs {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    background: var(--background-color);
    z-index: 10;
    border-bottom: 1px solid #eee;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 25px 15px;
    color: #666;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

.auth-tab.active {
    color: var(--primary-color);
}

.tab-indicator {
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 2px;
    width: 50%;
    background-color: var(--primary-color);
    transition: transform 0.3s ease;
}

/* Position the indicator based on active tab */
.tab-indicator.left {
    transform: translateX(0);
}

.tab-indicator.right {
    transform: translateX(100%);
}

/* Auth Form */
.auth-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Phone Input Container */
.phone-input-container {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.country-code {
    padding: 0 10px;
    background: #f5f5f5;
    color: #333;
    font-size: 14px;
    line-height: 48px;
    border-right: 1px solid #ddd;
}

.phone-input-container input {
    border: none;
    flex: 1;
}

/* Password Input Container */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.password-input-container input {
    border: none;
    flex: 1;
    padding-right: 40px;
}

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

.password-toggle:hover {
    color: var(--primary-color);
}

/* Password Requirements */
.password-requirements {
    margin-top: 8px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    display: none;
    position: static;
    margin-bottom: 0;
}

.requirement {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.requirement i {
    width: 16px;
    text-align: center;
}

.requirement.met {
    color: #28a745;
}

.requirement.unmet {
    color: #dc3545;
}

/* Validation Messages */
.validation-message {
    margin-top: 5px;
    font-size: 12px;
    color: #ff4444;
    min-height: 16px;
}

/* Error Message */
.error-message {
    color: #ff4444;
    font-size: 14px;
    text-align: center;
    margin: 0;
    min-height: 20px;
}

/* Form Footer (Submit Button and Links) */
.form-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

/* Submit Button */
.submit-button {
    width: 300px;
    height: 48px;
    border: none;
    border-radius: 32px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 2rem auto 0;
    display: block;
}

.submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Auth Link */
.auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Alert Messages */
.alert {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (min-width: 800px) {
    .auth-card {
        padding: 100px 200px;
    }
}

/* Media Queries */
@media screen and (max-width: 414px) {
    .auth-container {
        height: 100vh;
        height: -webkit-fill-available;
    }
}

#verificationCodeGroup {
    margin-top: 20px;
}

#verificationCode {
    letter-spacing: 4px;
    font-size: 18px;
    text-align: center;
}

/* Remove reCAPTCHA styles */
#recaptcha-container,
.g-recaptcha {
    display: none;
}

.forgot-password-link {
    display: block;
    text-align: right;
    color: var(--primary-color);
    font-size: 14px;
    text-decoration: none;
    margin-top: 8px;
    transition: color 0.3s;
}

.forgot-password-link:hover {
    text-decoration: underline;
    color: var(--primary-color-dark);
} 