* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.login-box:hover {
    transform: translateY(-5px);
}

.logo {
    text-align: center;
    margin-bottom: 35px;
}

.logo img {
    max-width: 180px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

h1 {
    text-align: center;
    color: #1e3c72;
    margin-bottom: 35px;
    font-size: 2.2em;
    font-weight: 600;
}

/* Common horizontal form styles */
.form-group {
    display: grid;
    grid-template-columns: 130px 250px;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    justify-content: center;
}

.login-box, .dashboard-content {
    max-width: 550px;
    padding: 25px;
}

/* Specific adjustments for textarea */
.form-group.textarea-group {
    align-items: start;
    padding-top: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-group {
        grid-template-columns: 100px 200px;
    }
    
    .login-box, .dashboard-content {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .form-group {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .form-group.checkbox {
        grid-template-columns: auto 1fr;
    }
    
    .login-box, .dashboard-content {
        padding: 20px;
    }
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 0.95em;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    border-color: #1e3c72;
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
    background: #fff;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #1e3c72;
}

.checkbox label {
    margin: 0;
    cursor: pointer;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-btn:hover {
    background: linear-gradient(45deg, #2a5298, #1e3c72);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.links {
    margin-top: 25px;
    text-align: center;
}

.links p {
    margin: 12px 0;
    color: #666;
}

.links a {
    color: #1e3c72;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.links a:hover {
    color: #2a5298;
    text-decoration: none;
    transform: translateX(3px);
}

.error-message {
    color: #dc3545;
    margin-bottom: 15px;
    text-align: center;
    padding: 10px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 8px;
    font-size: 0.9em;
}

.success-message {
    color: #198754;
    margin-bottom: 15px;
    text-align: center;
    padding: 10px;
    background: rgba(25, 135, 84, 0.1);
    border-radius: 8px;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-box {
        padding: 30px;
        margin: 20px;
    }

    h1 {
        font-size: 1.8em;
    }

    .logo img {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 20px;
    }

    h1 {
        font-size: 1.5em;
        margin-bottom: 25px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    input[type="text"],
    input[type="password"],
    input[type="email"] {
        padding: 10px 12px;
        font-size: 14px;
    }

    .login-btn {
        padding: 12px;
        font-size: 14px;
    }
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.logout-btn {
    padding: 8px 20px;
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.logout-btn:hover {
    background: linear-gradient(45deg, #c82333, #dc3545);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}