/* Auth Pages Styles */

/* Main Container */
.auth-main {
    min-height: calc(100vh - 250px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin-top: 80px;
}

.auth-container {
    max-width: 500px;
    width: 100%;
}

.auth-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(17, 87, 64, 0.1);
    padding: 2.5rem;
    border: 1px solid rgba(17, 87, 64, 0.08);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    height: 28px;
    margin-bottom: 1.5rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--light-text);
    font-size: 1rem;
}

/* Form Styles */
.auth-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark-text);
}

.form-group input {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(17, 87, 64, 0.2);
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter';
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(17, 87, 64, 0.1);
}

.password-input-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--light-text);
}

.toggle-password svg {
    width: 20px;
    height: 20px;
}

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

.helper-text {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-top: 0.25rem;
}

.submit-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.85rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-top: 1rem;
}

.submit-button:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(17, 87, 64, 0.15);
}

.submit-button:disabled {
    background: var(--light-text);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-links {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.form-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Auth States */
.auth-loading,
.auth-error,
.auth-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 0;
}

.auth-loading .spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(17, 87, 64, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

.auth-error svg,
.auth-success svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}

.auth-error svg {
    color: #dc3545;
}

.auth-success svg {
    color: #28a745;
}

.auth-error h2,
.auth-success h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.auth-error p,
.auth-success p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.primary-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.primary-button:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(17, 87, 64, 0.15);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Password Strength Meter */
.password-strength {
    margin-top: 0.5rem;
}

.strength-meter {
    width: 100%;
    height: 5px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.strength-bar {
    height: 100%;
    width: 0;
    background: #ccc;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 0.75rem;
    color: var(--light-text);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 350px;
}

.toast {
    padding: 1rem;
    border-radius: 6px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 4.7s forwards;
    max-width: 100%;
}

.toast.success {
    border-left: 4px solid #28a745;
}

.toast.error {
    border-left: 4px solid #dc3545;
}

.toast.warning {
    border-left: 4px solid #06a181;
}

.toast.info {
    border-left: 4px solid #17a2b8;
}

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: #28a745;
}

.toast.error .toast-icon {
    color: #dc3545;
}

.toast.warning .toast-icon {
    color: #06a181;
}

.toast.info .toast-icon {
    color: #17a2b8;
}

.toast-content {
    flex: 1;
}

.toast-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--dark-text);
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--light-text);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.toast-close:hover {
    color: var(--dark-text);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .auth-main {
        padding: 1.5rem;
    }
}