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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    color: #333;
}

/* Login Page */
.login-body {
    background-image: url('img/bg-login.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Overlay gelap agar teks lebih terbaca */
.login-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(100, 100, 100, 0.2); /* Gelapkan background */
    z-index: -1;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 420px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Logo OSIS */
.logo-container {
    margin-bottom: 15px;
}

.logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    /* border-radius: 50%;
    border: 4px solid #3a5075;
    background: white;
    padding: 2px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); */
}

.login-container h2 {
    margin-bottom: 10px;
    color: #1a1a1a;
    font-size: 24px;
}

.login-container p {
    margin-bottom: 20px;
    color: #444;
    font-size: 15px;
}

.login-container input {
    width: 100%;
    padding: 14px;
    margin: 12px 0;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 16px;
    text-align: center;
    font-weight: 500;
    transition: border 0.3s;
    background: white;
}

.login-container input:focus {
    border-color: #3a5075;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.2);
}

.login-container button {
    background: #3a5075;
    color: white;
    border: none;
    padding: 14px;
    width: 100%;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 5px;
}

.login-container button:hover {
    background: #2a4876;
    transform: translateY(-1px);
}

.error {
    color: #e74c3c;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 500;
    background: rgba(231, 76, 60, 0.1);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* Index Page */
.header {
    text-align: center;
    padding: 30px;
    background: #2c3e50;
    color: white;
}

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

.candidates {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 50px 10px;
}

.candidate-card {
    min-height: 400px;
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    width: 450px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.candidate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

.candidate-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.candidate-card h3 {
    padding: 15px;
    font-size: 18px;
    color: #2c3e50;
}

.moto {
    padding: 0 15px 15px;
    font-style: italic;
    color: #7f8c8d;
    line-height: 1.5;
}

.candidate-card button {
    width: 100%;
    padding: 12px;
    background: #3a5075;
    color: white;
    border: none;
    border-top: 1px solid #ddd;
    border-radius: 0;
    font-size: 16px;
    cursor: pointer;
}

.candidate-card button:hover {
    background: #1a5bc4;
}

/* --- Modal Styling --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideUp 0.4s ease;
}

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

.modal-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.modal-content h2 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.modal-content p {
    font-style: italic;
    color: #7f8c8d;
    line-height: 1.5;
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-cancel, .btn-confirm {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    flex: 1;
}

.btn-cancel {
    background: #95a5a6;
    color: white;
}

.btn-cancel:hover {
    background: #7f8c8d;
}

.btn-confirm {
    background: #3a5075;
    color: white;
}

.btn-confirm:hover {
    background: #1a5bc4;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    font-weight: bold;
}

.close:hover {
    color: #000;
}