/* ========================================
   PAYNEST MAIN STYLESHEET
   Dark Theme with Red Accents
   ======================================== */

/* ========================================
   BASE STYLES & RESET
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* ========================================
   ANIMATED BACKGROUND CIRCLES
   ======================================== */
.bg-circle {
    position: fixed;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.bg-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #ff4757 0%, #ff6b7a 30%, #ff1744 60%, transparent 100%);
    top: -200px;
    right: -150px;
    animation: moveCircle 15s ease-in-out infinite;
}

.bg-circle-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #ff1744 0%, #ff4757 40%, transparent 100%);
    bottom: -250px;
    left: -100px;
    animation: moveCircle2 18s ease-in-out infinite reverse;
}

@keyframes moveCircle {
    0% { transform: translate(0, 0); }
    50% { transform: translate(100px, -150px); }
    100% { transform: translate(0, 0); }
}

@keyframes moveCircle2 {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-120px, 100px); }
    100% { transform: translate(0, 0); }
}

/* ========================================
   NAVIGATION BAR
   ======================================== */
.navbar {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 71, 87, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo i {
    color: #ff4757;
    font-size: 28px;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;
}

.nav-link {
    color: #b0b0b0;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 71, 87, 0.1);
}

.nav-link i {
    font-size: 16px;
}

.nav-link-btn {
    background: linear-gradient(135deg, #ff4757 0%, #ff1744 100%);
    color: #fff !important;
}

.nav-link-btn:hover {
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a1a1a;
        flex-direction: column;
        padding: 20px;
        border-bottom: 2px solid rgba(255, 71, 87, 0.2);
        gap: 5px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
    flex: 1;
    position: relative;
    z-index: 1;
    padding-top: 20px;
}

/* ========================================
   AUTH CONTAINER (Login/Signup)
   ======================================== */
.auth-container {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 50px;
    width: 100%;
    max-width: 450px;
    margin: 40px auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 71, 87, 0.3);
    border: 2px solid rgba(255, 71, 87, 0.2);
    position: relative;
    z-index: 10;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    font-size: 60px;
    margin-bottom: 15px;
    animation: bounce 2s ease-in-out infinite;
    color: #ff4757;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.auth-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: #b0b0b0;
    font-weight: 400;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert.error {
    background-color: rgba(255, 71, 87, 0.2);
    color: #ff6b7a;
    border-left: 4px solid #ff4757;
}

.alert.success {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border-left: 4px solid #4caf50;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.form-group input {
    padding: 12px 16px;
    padding-right: 45px;
    border: 2px solid #333333;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    background: #242424;
    color: #ffffff;
    transition: all 0.3s ease;
    width: 100%;
}

.form-group input::placeholder {
    color: #666666;
}

.form-group input:focus {
    outline: none;
    border-color: #ff4757;
    background: #2a2a2a;
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.2);
}

/* Password Toggle */
.password-toggle {
    position: relative;
}

.password-toggle input {
    padding-right: 45px;
}

.password-toggle i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    font-size: 16px;
    z-index: 5;
    pointer-events: auto;
}

.password-toggle i:hover {
    color: #ff4757;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 10px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #b0b0b0;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ff4757;
}

.forgot-password {
    color: #ff4757;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    text-decoration: underline;
    color: #ff6b7a;
}

/* Login Button */
.btn-login {
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff4757 0%, #ff1744 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.5);
    width: 100%;
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.6);
    background: linear-gradient(135deg, #ff6b7a 0%, #ff4757 100%);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Divider */
.divider {
    text-align: center;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    margin: 25px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #333;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

/* Social Login */
.social-login {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-social {
    width: 50px;
    height: 50px;
    border: 2px solid #333;
    background: #242424;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    color: #b0b0b0;
}

.btn-social:hover {
    border-color: #ff4757;
    color: #ff4757;
    background: #2a2a2a;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: #b0b0b0;
}

.auth-footer a {
    color: #ff4757;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    text-decoration: underline;
    color: #ff6b7a;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: #1a1a1a;
    border-top: 2px solid rgba(255, 71, 87, 0.2);
    margin-top: 60px;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section h3 i {
    color: #ff4757;
}

.footer-section h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-section p {
    color: #888;
    font-size: 14px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff4757;
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: #242424;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #ff4757;
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #333;
    color: #666;
    font-size: 14px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 600px) {
    .auth-container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .auth-logo {
        font-size: 48px;
    }
    
    .bg-circle-1 {
        width: 400px;
        height: 400px;
    }
    
    .bg-circle-2 {
        width: 350px;
        height: 350px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .forgot-password {
        align-self: flex-end;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center { text-align: center; }
.text-red { color: #ff4757; }
.text-green { color: #4caf50; }
.text-white { color: #fff; }
.text-muted { color: #888; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

.hidden { visibility: hidden; }
.opacity-50 { opacity: 0.5; }