/* GIFTKOM AUTHENTICATION PAGES - SHARED STYLES */

/* Colors - CSS Variables */
:root {
    --primary-color: #8B1538;
    --primary-dark: #5C0D27;
    --accent-gold: #D4AF37;
    --success-color: #51cf66;
    --error-color: #ff6b6b;
    --warning-color: #ffc323;
    --text-dark: #2c2c2c;
    --text-light: #9e9e9e;
    --border-light: #e8e8e8;
    --bg-light: #f9f9f9;
}

/* ============================================ */
/* BASE STYLES */
/* ============================================ */

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

body {
    background: linear-gradient(135deg, #8B1538 0%, #5C0D27 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
    padding: 20px 0;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    padding: 50px 40px;
    animation: slideUp 0.5s ease-out;
}

/* ============================================ */
/* ANIMATIONS */
/* ============================================ */

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ============================================ */
/* HEADER SECTION */
/* ============================================ */

.header {
    text-align: center;
    margin-bottom: 35px;
}

.header h1 {
    color: #2c2c2c;
    font-size: 32px;
    margin-bottom: 8px;
    font-weight: 700;
}

.header p {
    color: #9e9e9e;
    font-size: 15px;
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.5;
    margin: 0;
}

.logo-container {
    margin-bottom: 25px;
}

.logo-container img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(139, 21, 56, 0.3));
}

/* ============================================ */
/* FORM STYLES */
/* ============================================ */

.form-group {
    margin-bottom: 24px;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #2c2c2c;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f9f9f9;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #8B1538;
    background: white;
    box-shadow: 0 0 0 4px rgba(139, 21, 56, 0.1);
}

/* ============================================ */
/* ERROR & MESSAGE STYLES */
/* ============================================ */

.error-message {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 8px;
    display: none;
    font-weight: 500;
}

.error-message.show {
    display: block;
}

.success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    border-left: 4px solid #51cf66;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

.alert {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    border-left: 4px solid #dc3545;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

.alert div {
    margin-bottom: 8px;
}

.alert div:last-child {
    margin-bottom: 0;
}

/* ============================================ */
/* BUTTON STYLES */
/* ============================================ */

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(135deg, #8B1538 0%, #5C0D27 100%);
    color: white;
    margin-bottom: 20px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 21, 56, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================ */
/* DIVIDER & LINKS */
/* ============================================ */

.divider {
    text-align: center;
    margin: 24px 0;
    color: #d0d0d0;
    font-size: 13px;
    font-weight: 500;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.links a {
    color: #8B1538;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    font-weight: 600;
}

.links a:hover {
    color: #5C0D27;
    text-decoration: underline;
}

/* ============================================ */
/* LOADING & SPINNER */
/* ============================================ */

.loading {
    display: none;
    text-align: center;
    color: #8B1538;
    font-size: 14px;
    font-weight: 600;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #8B1538;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

/* ============================================ */
/* PASSWORD STRENGTH INDICATOR */
/* ============================================ */

.password-strength {
    margin-top: 8px;
    height: 4px;
    background: #e8e8e8;
    border-radius: 2px;
    overflow: hidden;
}

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

.password-strength-bar.weak {
    width: 33.33%;
    background: #ff6b6b;
}

.password-strength-bar.fair {
    width: 66.66%;
    background: #ffc323;
}

.password-strength-bar.strong {
    width: 100%;
    background: #51cf66;
}

/* ============================================ */
/* RESPONSIVE DESIGN */
/* ============================================ */

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .card {
        padding: 35px 25px;
    }

    .header h1 {
        font-size: 26px;
    }

    .form-group input {
        padding: 12px 14px;
    }
}

/* ============================================ */
/* UTILITY CLASSES */
/* ============================================ */

.d-none {
    display: none !important;
}

