/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #212224;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: #2b2b2b;
    border-radius: 12px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid #3a3a3a;
}

.logo {
    text-align: center;
    margin-bottom: 32px;
}

.logo-image {
    width: 140px;
    height: auto;
    margin: 0 auto 16px;
    display: block;
}

.logo-subtitle {
    font-size: 14px;
    color: #9e9e9e;
}

h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #e0e0e0;
    margin-bottom: 8px;
}

input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #424242;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    background: #1a1a1a;
    color: #ffffff;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #757575;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    width: auto;
    margin: 0;
}

.toggle-password:hover {
    color: #E31E24;
    background: transparent;
}

.toggle-password:active {
    transform: translateY(-50%);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #e0e0e0;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    accent-color: #E31E24;
}

.checkbox-label span {
    user-select: none;
}

input:focus {
    outline: none;
    border-color: #E31E24;
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.2);
}

input::placeholder {
    color: #757575;
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #E31E24;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

button[type="submit"]:hover {
    background: #B71C1C;
}

button[type="submit"]:active {
    transform: translateY(1px);
}

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid #fca5a5;
}

@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
    }
}
