/* Auth Main Container */
.auth-main {
    min-height: calc(100vh - 64px - 300px); /* Subtract header and footer heights */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background-color: var(--bg-gray-50);
}

.auth-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* Auth Card */
.auth-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: #1a202c;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-gray);
}

/* Auth Form */
.auth-form {
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #1a202c;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: #1a202c;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--custom-blue);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

/* Password Input */
.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-gray);
}

.eye-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Password Strength Meter */
.password-strength {
    margin-top: 0.5rem;
}

.strength-meter {
    height: 4px;
    background-color: #e2e8f0;
    border-radius: 2px;
    margin-bottom: 0.5rem;
}

.strength-requirements {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.strength-requirements li {
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
}

.strength-requirements li::before {
    content: "";
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    background-color: #e2e8f0;
    border-radius: 50%;
}

.strength-requirements li.valid::before {
    background-color: #48bb78;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
}

.forgot-password {
    color: var(--custom-blue);
    text-decoration: none;
    font-size: 0.875rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.875rem;
}

.checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin-top: 0.25rem;
}

.checkbox-label a {
    color: var(--custom-blue);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Social Login */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 1rem);
    height: 1px;
    background-color: #e2e8f0;
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-divider span {
    background-color: var(--white);
    padding: 0 1rem;
    color: var(--text-gray);
    font-size: 0.875rem;
}

.social-login {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background-color: var(--white);
    color: #1a202c;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.social-btn:hover {
    background-color: #f8fafc;
}

.social-btn img {
    width: 1.5rem;
    height: 1.5rem;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    color: var(--text-gray);
}

.auth-footer a {
    color: var(--custom-blue);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Utility Classes */
.w-full {
    width: 100%;
}

/* Error States */
.form-group.error input {
    border-color: #e53e3e;
}

.form-group.error .error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success States */
.form-group.success input {
    border-color: #48bb78;
}

/* Loading State */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--white);
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
} 