/*
|--------------------------------------------------------------------------
| Auth Stylesheet - Login & Register
|--------------------------------------------------------------------------
| File: public/css/auth.css
*/

/* ==================== BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.auth-page {
    font-family: "Poppins", sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

/* ==================== AUTH WRAPPER ==================== */
.auth-wrapper {
    width: 100%;
    max-width: 800px;
    min-height: 480px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

/* ==================== LEFT SIDE - BRANDING ==================== */
.auth-left {
    background-color: #1a1a1a;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.03) 0%,
        transparent 70%
    );
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.auth-left-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.auth-logo {
    width: 160px;
    height: 160px;
    margin: 0 auto 1rem auto;
}

.auth-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.auth-logo-placeholder {
    width: 160px;
    height: 160px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 3px solid #444;
}

.auth-logo-placeholder i {
    font-size: 3.5rem;
    color: #666;
}

.auth-welcome {
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.auth-welcome h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.auth-welcome p {
    color: #9ca3af;
    font-size: 0.85rem;
    line-height: 1.6;
}

.auth-left-btn {
    margin-top: 1.5rem;
}

.auth-left-btn a {
    display: inline-block;
    padding: 0.6rem 1.75rem;
    border: 2px solid #ffffff;
    border-radius: 30px;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}

.auth-left-btn a:hover {
    background-color: #ffffff;
    color: #1a1a1a;
}

/* ==================== RIGHT SIDE - FORM ==================== */
.auth-right {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.auth-form-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.auth-form-header p {
    color: #6b7280;
    font-size: 0.85rem;
}

/* ==================== FORM ELEMENTS ==================== */
.auth-form-group {
    margin-bottom: 1rem;
}

.auth-form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 0.35rem;
}

.auth-form-input-wrapper {
    position: relative;
}

.auth-form-input-wrapper i {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.9rem;
}

.auth-form-input {
    width: 100%;
    padding: 0.7rem 0.875rem 0.7rem 2.5rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: "Poppins", sans-serif;
    transition: all 0.2s;
    background-color: #f9fafb;
}

.auth-form-input:focus {
    outline: none;
    border-color: #1a1a1a;
    background-color: #ffffff;
}

.auth-form-input.input-error {
    border-color: #dc2626;
}

.auth-form-error {
    font-size: 0.8rem;
    color: #dc2626;
    margin-top: 0.35rem;
}

/* ==================== CHECKBOX & LINKS ==================== */
.auth-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
}

.auth-form-remember {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #4b5563;
    cursor: pointer;
}

.auth-form-remember input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #1a1a1a;
    cursor: pointer;
}

.auth-form-forgot {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-form-forgot:hover {
    color: #4b5563;
}

/* ==================== BUTTONS ==================== */
.auth-form-btn {
    width: 100%;
    padding: 0.7rem;
    background-color: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-form-btn:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* ==================== FOOTER LINKS ==================== */
.auth-form-footer {
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.auth-form-footer p {
    color: #6b7280;
    font-size: 0.8rem;
}

.auth-form-footer a {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-form-footer a:hover {
    text-decoration: underline;
}

/* ==================== MOBILE FOOTER ==================== */
.auth-mobile-footer {
    display: none;
    text-align: center;
    margin-top: 1.5rem;
}

.auth-mobile-footer p {
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.auth-mobile-footer a {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    background-color: #1a1a1a;
    color: #ffffff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

/* ==================== ALERT ==================== */
.auth-alert {
    padding: 0.65rem 0.875rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.auth-alert-error {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.auth-alert-success {
    background-color: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    body.auth-page {
        padding: 1rem;
        background-color: #ffffff;
    }

    .auth-wrapper {
        grid-template-columns: 1fr;
        max-width: 420px;
        min-height: auto;
        box-shadow: none;
        border-radius: 0;
    }

    .auth-left {
        display: none;
    }

    .auth-right {
        padding: 2rem 1.5rem;
    }

    .auth-form-header {
        margin-bottom: 1.5rem;
    }

    .auth-form-header h2 {
        font-size: 1.5rem;
    }

    .auth-mobile-footer {
        display: block;
    }

    .auth-form-footer {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

