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

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #121212;
    color: #f5f5f5;
    min-height: 100vh;
    background-image: radial-gradient(circle, rgba(7,53,72,0.5) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center;
}

/* Header Section */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: rgba(18, 18, 18, 0.95);
    z-index: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.header-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f5f5f5;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Main Content */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 80px 20px 20px;
}

.login-container {
    background-color: rgba(18, 18, 18, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
}

.animated-gradient {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(to right, 
        #007ba7,
        #00a5cf,
        #56cfe1,
        #007ba7,
        #00a5cf,
        #56cfe1
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: gradient-flow 5s linear infinite alternate;
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #f5f5f5;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #f5f5f5;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Autofill styles */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1a1a1a inset !important;
    -webkit-text-fill-color: #f5f5f5 !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-group input:focus {
    outline: none;
    border-color: #00a7e6;
    background-color: rgba(255, 255, 255, 0.15);
}

/* Remember Me Checkbox */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.form-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.form-checkbox input[type="checkbox"]:checked {
    background-color: #00a7e6;
    border-color: #00a7e6;
}

.form-checkbox input[type="checkbox"]:checked::before {
    content: "✓";
    position: absolute;
    color: #fff;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-checkbox label {
    color: #888;
    font-size: 0.9rem;
    cursor: pointer;
}

.login-button {
    background-color: #00a7e6;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-button:hover {
    background-color: #0090cc;
    transform: scale(1.02);
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    color: #888;
}

.form-footer a {
    color: #00a7e6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: #0090cc;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: #f5f5f5;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-links a:hover {
    color: #007ba7;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
