/* Lokasi file: C:/xampp/htdocs/jokowireememe/assets/css/style.css */

:root {
    --primary-color: #2d5d4c; /* Hijau bingkai */
    --secondary-color: #e8f5ec;
    --dark-blue: #1c473a;
    --white: #ffffff;
    --bg-light: #f3faf5;
    --shadow: 0 4px 15px rgba(45, 93, 76, 0.18);
    --dark-green: #264d41;
    --light-gray: #e4f4e9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--dark-blue);
    min-height: 100vh;
    margin: 0;
    padding: 20px 0;
}

.navbar {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 20px;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.navbar h3 {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.navbar div,
.navbar .nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar a {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 600;
}

.navbar a:hover {
    color: var(--primary-color);
}

/* Login Page Styles */
body.login-page {
    background: linear-gradient(135deg, #f5fdf7 0%, #e8f5eb 50%, #dffae5 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

body.login-page::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(45, 93, 76, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

body.login-page::after {
    content: '';
    position: fixed;
    bottom: -20%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(45, 93, 76, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 1300px;
    height: auto;
    min-height: 100vh;
    align-items: center;
    justify-content: space-between;
    padding: 40px 60px;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.login-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-box {
    background: white;
    padding: 50px 45px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(45, 93, 76, 0.15);
    max-width: 420px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.logo-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, transparent 0%, rgba(45, 93, 76, 0.05) 50%, transparent 100%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

.logo-box:hover {
    box-shadow: 0 30px 80px rgba(45, 93, 76, 0.2);
    transform: translateY(-5px);
}

.logo-box h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1c473a;
    margin-bottom: 30px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.logo-image {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid #2d5d4c;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
    box-shadow: 0 15px 40px rgba(45, 93, 76, 0.25);
    transition: all 0.4s ease;
}

.logo-box:hover .logo-image {
    border-color: #2ecc71;
    box-shadow: 0 20px 50px rgba(45, 93, 76, 0.35);
}

.login-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 380px;
}

.menu-item {
    display: block;
    padding: 18px 24px;
    text-align: center;
    text-decoration: none;
    color: #2d5d4c;
    font-size: 1.15rem;
    font-weight: 600;
    border: 2px solid #2d5d4c;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
    position: relative;
    overflow: hidden;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(45, 93, 76, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.menu-item:hover {
    background: #2d5d4c;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(45, 93, 76, 0.3);
    border-color: #254e41;
}

.menu-item:hover::before {
    left: 100%;
}

.menu-item:active {
    transform: translateY(-1px);
}

.login-btn {
    cursor: pointer;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    max-width: 420px;
    width: 90%;
    position: relative;
    animation: slideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideIn {
    from {
        transform: translateY(-80px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 32px;
    font-weight: 300;
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.close:hover {
    color: #2d5d4c;
    transform: rotate(90deg);
}

.modal-content h2 {
    color: #2d5d4c;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 0.3px;
}

/* Register Page Styles */
body.register-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

/* Container & Card Styles */
.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
}

.card h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.3px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    background: #f8f9fa;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(45, 93, 76, 0.1);
}

.btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #2d5d4c 0%, #254e41 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: 12px;
    letter-spacing: 0.5px;
    text-transform: capitalize;
    box-shadow: 0 4px 15px rgba(45, 93, 76, 0.2);
}

.btn:hover {
    background: linear-gradient(135deg, #254e41 0%, #1c3a30 100%);
    box-shadow: 0 6px 25px rgba(45, 93, 76, 0.3);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.footer-text {
    margin-top: 25px;
    font-size: 0.9rem;
    text-align: center;
    color: #666;
}

.footer-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.footer-text a:hover {
    text-decoration: underline;
    color: #254e41;
}

/* Guest/Donasi/Contact Pages */
.page-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #2d5d4c 0%, #3a7066 100%);
    padding: 40px 20px;
}

.page-header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.content-box {
    background: white;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.donation-info {
    text-align: center;
    margin-bottom: 30px;
}

.donation-amount {
    font-size: 1.5rem;
    color: #2d5d4c;
    margin: 20px 0;
    font-weight: bold;
}

.donation-method {
    background: #f0f0f0;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #2d5d4c;
}

.donation-method h3 {
    color: #2d5d4c;
    margin-bottom: 10px;
}

.phone-number {
    font-size: 1.2rem;
    color: #2d5d4c;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    margin: 10px 0;
}

.btn-primary {
    background-color: #2d5d4c;
}

.btn-primary:hover {
    background-color: #1f3f37;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #2d5d4c;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.back-link:hover {
    color: #1f3f37;
    text-decoration: underline;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ebf5fb;
    border-radius: 8px;
    outline: none;
    transition: 0.3s;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    resize: vertical;
    min-height: 150px;
}

.contact-form textarea:focus {
    border-color: #2d5d4c;
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        gap: 40px;
        padding: 30px 20px;
        height: auto;
        min-height: 100vh;
    }

    .logo-box {
        max-width: 350px;
        padding: 40px 35px;
    }

    .logo-box h1 {
        font-size: 1.8rem;
    }

    .logo-image {
        width: 240px;
        height: 240px;
        border-width: 7px;
    }

    .login-menu {
        max-width: 320px;
    }

    .menu-item {
        padding: 16px 20px;
        font-size: 1.05rem;
    }

    .modal-content {
        width: 95%;
        padding: 40px 30px;
    }
}

/* Responsive */
@media (max-width: 480px) {
    body.login-page {
        padding: 10px;
    }

    .login-container {
        gap: 25px;
        padding: 20px 15px;
    }

    .logo-box {
        max-width: 100%;
        padding: 30px 25px;
    }

    .logo-box h1 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .logo-image {
        width: 180px;
        height: 180px;
        border-width: 6px;
    }

    .login-menu {
        max-width: 100%;
        gap: 15px;
    }

    .menu-item {
        padding: 16px 18px;
        font-size: 1rem;
    }

    .modal-content {
        width: 98%;
        padding: 35px 25px;
        border-radius: 18px;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }

    .form-group input, .form-group select {
        padding: 12px 14px;
        font-size: 16px;
    }

    .btn {
        padding: 14px;
        font-size: 0.95rem;
    }
}