* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft JhengHei', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #6a11cb 0%, #d94c68 100%);
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-section {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    padding: 30px 20px;
    text-align: center;
    color: white;
}

.logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.logo-icon {
    font-size: 36px;
    color: #6a11cb;
}

.logo-section h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.logo-section p {
    font-size: 14px;
    opacity: 0.9;
}

.form-section {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        color: #333;
        font-size: 14px;
    }

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

    .form-control:focus {
        border-color: #6a11cb;
        box-shadow: 0 0 0 2px rgba(106, 17, 203, 0.2);
        outline: none;
    }

.password-toggle {
    position: absolute;
    right: 15px;
    top: 40px;
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
}

.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(106, 17, 203, 0.3);
}

    .login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(106, 17, 203, 0.4);
    }

    .login-btn:active {
        transform: translateY(0);
    }

    .login-btn:disabled {
        background: #cccccc;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.form-error {
    background-color: #ffebee;
    color: #e74c3c;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    display: none;
    border-left: 4px solid #e74c3c;
}

@media (max-width: 480px) {
    .login-container {
        max-width: 100%;
    }

    .form-section {
        padding: 25px;
    }

    .logo-section {
        padding: 25px 15px;
    }
}
