/* ===========================
   AUTH PAGE STYLING
   =========================== */

/* Background dengan gradient */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar-brand {
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-brand h1 {
    font-size: 1.5rem;
    color: #1e88e5;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Auth Container */
.auth-page-container {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
    margin-top: 80px;
    animation: fadeInUp 0.6s ease-out;
}

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

/* Auth Card */
.auth-page-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

/* Auth Header */
.auth-page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-page-header .logo {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.auth-page-header h1 {
    font-size: 2rem;
    color: #212121;
    margin-bottom: 0.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-page-header p {
    color: #757575;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Tabs */
.auth-page-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
    background: #f5f7fa;
    border-radius: 12px;
    padding: 0.25rem;
}

.auth-page-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #757575;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 10px;
}

.auth-page-tab-btn:hover {
    color: #1e88e5;
    background: rgba(30, 136, 229, 0.1);
}

.auth-page-tab-btn.active {
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Content */
.auth-page-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.auth-page-content.active {
    display: block;
}

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

.auth-page-content h2 {
    font-size: 1.4rem;
    color: #212121;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.auth-page-content > p {
    color: #757575;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: #212121;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #1e88e5;
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.form-group input::placeholder {
    color: #bdbdbd;
}

/* Buttons */
.btn {
    padding: 0.95rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.6);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-block {
    width: 100%;
    margin-top: 0.5rem;
}

/* Links */
.forgot-password-link {
    display: inline-block;
    color: #1e88e5;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.forgot-password-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.signup-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #757575;
    font-size: 0.95rem;
}

.signup-link a {
    color: #1e88e5;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.signup-link a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    z-index: 9999;
    color: white;
    display: none;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 90%;
    word-wrap: break-word;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    font-size: 0.95rem;
}

.toast.success {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.toast.error {
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
}

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

/* Mobile Responsive */
@media (max-width: 480px) {
    body {
        padding: 1rem;
    }

    .navbar {
        padding: 0.8rem 1rem;
    }

    .navbar-brand h1 {
        font-size: 1.2rem;
    }

    .auth-page-container {
        padding: 1rem;
        margin-top: 70px;
    }

    .auth-page-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }

    .auth-page-header {
        margin-bottom: 1.5rem;
    }

    .auth-page-header .logo {
        font-size: 2.5rem;
    }

    .auth-page-header h1 {
        font-size: 1.5rem;
    }

    .auth-page-header p {
        font-size: 0.85rem;
    }

    .auth-page-tabs {
        margin-bottom: 1.5rem;
    }

    .auth-page-tab-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-group input {
        padding: 0.8rem 0.9rem;
        font-size: 0.95rem;
    }

    .btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .auth-page-content h2 {
        font-size: 1.2rem;
    }

    .auth-page-content > p {
        font-size: 0.9rem;
    }

    .toast {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        transform: none;
        max-width: none;
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .auth-page-card {
        padding: 1.2rem 0.8rem;
    }

    .auth-page-header .logo {
        font-size: 2rem;
    }

    .auth-page-header h1 {
        font-size: 1.3rem;
    }

    .form-group input {
        font-size: 0.9rem;
    }
}
