/* ========================================
   Auth Pages Styles (index.php)
   ======================================== */

@import url('fonts-local.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Prompt', sans-serif;
    background-color: #3B4B9E;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    background: #FFF9E8;
    padding: 35px 32px;
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
    max-width: 380px;
    width: 100%;
    text-align: center;
    animation: slideUp 0.4s ease-out;
}

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

.logo {
    width: 200px;
    margin-bottom: 18px;
}

h2 {
    color: #C0392B;
    margin-bottom: 6px;
    font-size: 22px;
    font-weight: 600;
}

.subtitle {
    color: #888;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 400;
    font-family: 'Sarabun', sans-serif;
}

/* ========== Buttons ========== */

.role-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.role-btn {
    background: #C0392B;
    color: white;
    padding: 13px 24px;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    display: block;
    font-family: 'Prompt', sans-serif;
}

.role-btn:hover {
    background: #A93226;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(192, 57, 43, 0.35);
}

.role-btn-outline {
    background: white;
    color: #C0392B;
    border: 2px solid #C0392B;
}

.role-btn-outline:hover {
    background: #C0392B;
    color: white;
}

/* ========== Forms ========== */

.form-group {
    margin-bottom: 14px;
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid #E0E0E0;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Sarabun', sans-serif;
    transition: all 0.25s;
    background: white;
    color: #333;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #C0392B;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 72px;
}

.btn-submit {
    width: 100%;
    background: #C0392B;
    color: white;
    padding: 13px;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 8px;
    font-family: 'Prompt', sans-serif;
}

.btn-submit:hover {
    background: #A93226;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(192, 57, 43, 0.35);
}

.google-login-wrap {
    margin-top: 10px;
}

.btn-google-login {
    width: 100%;
    display: block;
    text-decoration: none;
    text-align: center;
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
    color: #1f1f1f;
    border: 1px solid #d0d0d0;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s;
}

.btn-google-login:hover {
    background: #f6f6f6;
    border-color: #b8b8b8;
}

.google-login-note {
    margin-top: 6px;
    color: #888;
    font-size: 12px;
    font-family: 'Sarabun', sans-serif;
}

/* ========== Alerts ========== */

.alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-weight: 500;
    font-size: 14px;
    animation: fadeIn 0.3s;
    font-family: 'Sarabun', sans-serif;
}

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

.alert-error {
    background: #FFEBEE;
    color: #C62828;
    border-left: 4px solid #C62828;
}

.alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border-left: 4px solid #2E7D32;
}

/* ========== Links ========== */

.back-link {
    display: inline-block;
    margin-top: 16px;
    color: #C0392B;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.25s;
    font-family: 'Sarabun', sans-serif;
}

.back-link:hover {
    color: #a64c43;
    text-decoration: underline;
}

.register-link {
    margin-top: 18px;
    color: #888;
    font-size: 13px;
    font-family: 'Sarabun', sans-serif;
}

.register-link a {
    color: #e0594a;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
}

.register-link a:hover {
    color: #c14e43;
    text-decoration: underline;
}

/* ========== Responsive ========== */

@media (max-width: 768px) {
    .logo {
        width: clamp(140px, 42vw, 180px);
        max-width: 100%;
        height: auto;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .logo {
        width: clamp(132px, 40vw, 168px);
        margin-bottom: 14px;
    }

    h2 {
        font-size: 20px;
    }

    .role-btn,
    .btn-submit {
        font-size: 14px;
        padding: 12px 20px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 13px;
        padding: 10px 14px;
    }
}