/* GTN Task Management Auth Styles */

:root {
    --gtn-primary: #5b21b6;
    --gtn-dark: #1e293b;
    --gtn-bg: #f1f5f9;
    --gtn-card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --gtn-input-border: #e2e8f0;
    --gtn-text-muted: #64748b;
}

.auth {
    background-color: var(--gtn-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: var(--gtn-card-shadow);
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 50%;
    overflow: hidden;
}

.auth-logo img {
    width: 60px;
    height: auto;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: var(--gtn-text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form .form-label {
    display: block;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.5rem;
}

.auth-form .input-group {
    border: 1px solid var(--gtn-input-border);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form .input-group:focus-within {
    border-color: var(--gtn-primary);
    box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.1);
}

.auth-form .input-group-text {
    background: transparent;
    border: none;
    color: var(--gtn-text-muted);
    padding: 0.75rem 1rem;
}

.auth-form .form-control {
    border: none;
    padding: 0.75rem 0.5rem;
    font-size: 0.95rem;
    background: transparent;
}

.auth-form .form-control:focus {
    box-shadow: none;
    outline: none;
}

.auth-form .form-control::placeholder {
    color: #94a3b8;
}

.btn-auth-primary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--gtn-dark);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-auth-primary:hover {
    background-color: #334155;
    color: #ffffff;
}

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

.auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    font-size: 0.875rem;
}

.auth-links a {
    color: var(--gtn-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.auth-links a:hover {
    color: var(--gtn-primary);
}

.auth-links .signup-link {
    color: #1e293b;
    font-weight: 600;
}

.auth-links .signup-link:hover {
    color: var(--gtn-primary);
}

/* Alert messages */
.auth-form .alert {
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* Remember me checkbox */
.auth-form .custom-control-label {
    font-size: 0.875rem;
    color: var(--gtn-text-muted);
}

/* Terms of service checkbox */
.auth-form .tos-checkbox {
    margin-bottom: 1.25rem;
}

.auth-form .tos-checkbox a {
    color: var(--gtn-primary);
}

/* Error states */
.auth-form .is-invalid {
    border-color: #ef4444 !important;
}

.auth-form .invalid-feedback {
    font-size: 0.8rem;
    color: #ef4444;
    margin-top: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .auth {
        padding: 1rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .auth-links {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}
