/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1e1e1e, #121212);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 0 20px;
}

.login-form {
    background: #2d2d2d;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    border: 1px solid #333333;
}

.login-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.logo h2 span {
    color: #4CAF50;
}

.logo p {
    color: #cccccc;
    font-size: 1rem;
}

.error-message {
    background: rgba(231, 76, 60, 0.2);
    color: #ff6b6b;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-weight: 500;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaaaaa;
}

.input-icon input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #333333;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    background: #333333;
    color: #e0e0e0;
}

.input-icon input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #e0e0e0;
    font-size: 0.95rem;
}

.checkbox input {
    width: auto;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 1px solid #444444;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333333;
}

.checkmark::after {
    content: '✓';
    font-size: 12px;
    color: white;
    opacity: 0;
    transition: opacity 0.2s;
}

.checkbox input:checked+.checkmark {
    background: #4CAF50;
    border-color: #4CAF50;
}

.checkbox input:checked+.checkmark::after {
    opacity: 1;
}

.forgot-password {
    color: #4dabf7;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #339af0;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.signup-link {
    text-align: center;
    margin-top: 25px;
    color: #cccccc;
    font-size: 0.95rem;
}

.signup-link a {
    color: #4dabf7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.signup-link a:hover {
    color: #339af0;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 576px) {
    .login-form {
        padding: 30px 20px;
        margin: 10px;
    }

    .logo h2 {
        font-size: 1.7rem;
    }

    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .input-icon input {
        padding: 12px 12px 12px 40px;
        font-size: 0.95rem;
    }

    .login-btn {
        padding: 12px;
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .login-form {
        padding: 20px 15px;
    }

    .logo h2 {
        font-size: 1.5rem;
    }

    .logo p {
        font-size: 0.9rem;
    }

    .input-group label {
        font-size: 0.9rem;
    }

    .input-icon input {
        padding: 10px 10px 10px 35px;
        font-size: 0.9rem;
    }

    .login-btn {
        padding: 10px;
        font-size: 0.95rem;
    }

    .signup-link {
        font-size: 0.9rem;
    }
}