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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: #212121;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: #2d2d2d;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #404040;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.header-actions {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid #404040;
}

.back-btn:hover {
    color: #10a37f;
    border-color: #10a37f;
    background: rgba(16, 163, 127, 0.1);
}

.back-btn svg {
    transition: transform 0.3s ease;
}

.back-btn:hover svg {
    transform: translateX(-2px);
}

.login-box h1 {
    color: #ffffff;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #d1d5db;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #404040;
    border-radius: 8px;
    font-size: 16px;
    background: #1a1a1a;
    color: #ffffff;
    transition: all 0.3s ease;
}

.password-input-wrapper input {
    padding-right: 50px;
}

.form-group input:focus {
    outline: none;
    border-color: #10a37f;
    box-shadow: 0 0 0 2px rgba(16, 163, 127, 0.2);
}

.form-group input::placeholder {
    color: #6b7280;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.3s ease;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.password-toggle:hover {
    color: #10a37f;
    background: rgba(16, 163, 127, 0.1);
}

.password-toggle svg {
    transition: all 0.3s ease;
}

.eye-icon {
    display: block;
}

.eye-off-icon {
    display: none;
}

.password-toggle.show-password .eye-icon {
    display: none;
}

.password-toggle.show-password .eye-off-icon {
    display: block;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: #10a37f;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-btn:hover {
    background: #0d8f6f;
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
}

.error-message {
    color: #ef4444;
    margin-top: 15px;
    font-size: 14px;
    display: none;
    background: rgba(239, 68, 68, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.error-message.show {
    display: block;
}

/* Responsive design */
@media (max-width: 480px) {
    .login-container {
        padding: 15px;
    }
    
    .login-box {
        padding: 30px 20px;
    }
    
    .login-box h1 {
        font-size: 24px;
    }
    
    .back-btn {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .back-btn svg {
        width: 16px;
        height: 16px;
    }
}
