/* Authentication Pages - Clean & Professional Design */
/* Used for: Login & Registration pages */

/* Soft gradient background */
body {
    background: linear-gradient(135deg, #fffaf4 0%, #fff6f4 50%, #fff8eb 100%) !important;
    min-height: 100vh;
}

/* Main container - positions form higher on page */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.5rem 2rem 3rem;
    margin-top: -1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* White card with soft shadow */
.auth-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(255, 182, 193, 0.25);
    border: 2px solid rgba(255, 182, 193, 0.3);
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Title styling */
.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: #5a3e36;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-title i {
    color: #ff6b6b;
}

/* Subtitle/tagline */
.auth-subtitle {
    color: #7d5a50;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Form group spacing */
.auth-form-group {
    margin-bottom: 1.5rem;
}

/* Label styling */
.auth-label {
    display: block;
    color: #5a3e36;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.auth-label i {
    color: #ff6b6b;
}

/* Input field styling */
.auth-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 182, 193, 0.3);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.auth-input:focus {
    outline: none;
    border-color: #ff9aa2;
    box-shadow: 0 0 0 3px rgba(255, 154, 162, 0.1);
}

/* Validation states */
.auth-input.is-valid {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.auth-input.is-invalid {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

/* Submit button */
.auth-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #ff6b6b, #ff9aa2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
}

/* Link to other auth page */
.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #7d5a50;
    font-size: 0.9rem;
}

.auth-link a {
    color: #5a3e36;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link a:hover {
    color: #ff6b6b;
}

/* Error message text */
.error-text {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

/* Responsive design */
@media (max-width: 576px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
}

/* ── TOS Checkbox ────────────────────────────────────── */
.tos-group {
    margin-bottom: 1.25rem;
}

.tos-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-left: 2rem;
}

.tos-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.tos-checkmark {
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid rgba(255, 182, 193, 0.5);
    border-radius: 5px;
    background: white;
    transition: all 0.25s ease;
}

.tos-label input[type="checkbox"]:checked ~ .tos-checkmark {
    background: linear-gradient(135deg, #ff6b6b, #ff9aa2);
    border-color: #ff6b6b;
}

.tos-checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 5.5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.tos-label input[type="checkbox"]:checked ~ .tos-checkmark::after {
    display: block;
}

.tos-text {
    font-size: 0.88rem;
    color: #5a3e36;
    line-height: 1.4;
}

.tos-link {
    color: #ff6b6b;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tos-link:hover {
    color: #e85555;
    text-decoration: underline;
}

/* ── Verify Email Sent page ────────────────────────────── */
.verify-card {
    text-align: center;
    max-width: 520px;
}

.verify-icon {
    font-size: 3.5rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
    animation: popIn 0.5s ease-out;
}

@keyframes popIn {
    0%   { transform: scale(0); opacity: 0; }
    70%  { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.verify-email-address {
    font-size: 1.05rem;
    font-weight: 700;
    color: #5a3e36;
    background: rgba(255, 222, 233, 0.3);
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    word-break: break-all;
}

/* Step list */
.verify-steps {
    text-align: left;
    margin: 1.5rem auto;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.verify-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #5a3e36;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ff9aa2);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
}

.verify-note {
    font-size: 0.88rem;
    color: #7d5a50;
    background: rgba(255, 222, 233, 0.25);
    padding: 0.6rem 1rem;
    border-radius: 10px;
    display: inline-block;
    margin-top: 0.5rem;
}

/* Resend section */
.resend-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 182, 193, 0.3);
}

.resend-text {
    font-size: 0.95rem;
    color: #7d5a50;
    margin-bottom: 0.75rem;
}

.resend-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1.5rem;
    border: 2px solid rgba(255, 182, 193, 0.5);
    border-radius: 10px;
    background: white;
    color: #5a3e36;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.resend-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff6b6b, #ff9aa2);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.resend-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.resend-hint {
    font-size: 0.82rem;
    color: #999;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* Responsive verify card */
@media (max-width: 576px) {
    .verify-icon {
        font-size: 2.8rem;
    }

    .verify-email-address {
        font-size: 0.95rem;
    }

    .verify-steps {
        max-width: 100%;
    }

    .resend-btn {
        width: 100%;
        justify-content: center;
    }
}