/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #0B0E14;
    color: #F1F5F9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
}

/* --- Navigation --- */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background-color: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(10px); /* Frosted glass effect for nav */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    height: 80px;
}

.logo img {
    height: 50px;
    margin-top: 5px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #9CA3AF;
    border-radius: 6px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

.active {
    background-color: #E63946 !important; /* Modern softer red */
    color: #fff !important;
}

/* --- Login Container & Background --- */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    width: 100%;
    /* Added a dark gradient overlay so the form is readable over the image */
    background-image: linear-gradient(rgba(11, 14, 20, 0.7), rgba(11, 14, 20, 0.9)), url('pakcik12.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 80px; /* Offset for fixed nav */
}

/* --- Modern Glass Login Box --- */
.login-box {
    background: rgba(28, 33, 43, 0.6); /* Semi-transparent dark */
    backdrop-filter: blur(16px); /* The magic glass blur */
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle edge */
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
}

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

.login-header h2 {
    color: #fff;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-header p {
    color: #9CA3AF;
    font-size: 14px;
}

/* --- Form Fields --- */
.textbox {
    margin-bottom: 20px;
}

.textbox input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
}

.textbox input::placeholder {
    color: #6B7280;
}

.textbox input:focus {
    border-color: #E63946; /* Highlights red only when clicked */
    outline: none;
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15); /* Soft red glow */
}

/* --- Button --- */
.btn {
    background-color: #E63946;
    color: #fff;
    border: none;
    padding: 14px;
    width: 100%;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.btn:hover {
    background-color: #D90429;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

/* --- Error Handling --- */
.error-banner {
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #EF4444;
    color: #FCA5A5;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: left;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px;
    background-color: #0B0E14;
    color: #6B7280;
    font-size: 12px;
}

/* --- Success Handling --- */
.success-banner {
    background-color: rgba(16, 185, 129, 0.1); /* Soft Green */
    border-left: 4px solid #10B981;
    color: #6EE7B7;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: left;
}

/* Ensure container scrolls nicely if the form gets tall on smaller screens */
.login-container {
    overflow-y: auto;
    padding-bottom: 40px; 
}

/* --- Email Verification Styles --- */
.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.input-group input {
    margin-bottom: 0; /* Override default textbox margin */
}

.get-code-btn {
    padding: 0 15px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #6B7280;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: not-allowed;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* The Shining Active State */
.get-code-btn.shining {
    background-color: var(--accent-blue, #0A58CA);
    color: #ffffff;
    cursor: pointer;
    border-color: #0A58CA;
    animation: pulse-glow 2s infinite;
}

.get-code-btn.sent {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10B981;
    border-color: rgba(16, 185, 129, 0.5);
    animation: none;
    cursor: not-allowed;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(10, 88, 202, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(10, 88, 202, 0); }
    100% { box-shadow: 0 0 0 0 rgba(10, 88, 202, 0); }
}

.hidden {
    display: none;
}