/* Emby-like styling with CSS variables for customization */

:root {
    /* Emby color palette */
    --emby-primary: #42be65;
    --emby-primary-dark: #51c46c;
    --emby-primary-light: #6bcf8a;
    --emby-background: rgb(40, 40, 40);
    --emby-surface: rgb(30, 30, 30);
    --emby-text: #ffffff;
    --emby-text-secondary: #b0b0b0;
    --emby-text-placeholder: #666;
    --emby-error: #e74c3c;
    --emby-error-bg: rgba(231, 76, 60, 0.2);
}

/*
 * CUSTOMIZATION GUIDE
 *
 * To customize the colors, override the CSS variables in your own CSS file:
 *
 * Example:
 * :root {
 *     --emby-primary: #your-color;
 *     --emby-primary-dark: #darker-shade;
 *     --emby-background: #your-background;
 *     --emby-surface: rgba(...);
 *     --emby-text: #text-color;
 * }
 *
 * Available variables:
 * --emby-primary: Primary action color (default: #42be65 - Emby green)
 * --emby-primary-dark: Darker shade of primary color
 * --emby-primary-light: Lighter shade of primary color
 * --emby-background: Background gradient color
 * --emby-surface: Container surface color
 * --emby-text: Main text color
 * --emby-text-secondary: Secondary text color
 * --emby-text-placeholder: Placeholder text color
 * --emby-error: Error text color
 * --emby-error-bg: Error background color
 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--emby-background) 0%, #000000 100%);
    color: var(--emby-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 400px;
    background: var(--emby-surface);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo img {
    width: 60px;
    height: 60px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 10px;
    color: var(--emby-text);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--emby-text-secondary);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 14px;
    color: var(--emby-text);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--emby-primary);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(66, 190, 101, 0.2);
}

.form-group input::placeholder {
    color: var(--emby-text-placeholder);
}

.error-message {
    background: var(--emby-error-bg);
    border: 1px solid var(--emby-error);
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: var(--emby-error);
    font-size: 14px;
    display: none;
}

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

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--emby-primary) 0%, var(--emby-primary-dark) 100%);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    color: var(--emby-text);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 190, 101, 0.4);
}

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

.footer {
    text-align: center;
    margin-top: 30px;
    font-size: 12px;
    color: var(--emby-text-placeholder);
}

.profile-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.profile-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--emby-primary);
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.profile-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--emby-text);
}

.profile-details {
    margin-bottom: 25px;
}

.profile-field {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-field:last-child {
    border-bottom: none;
}

.field-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--emby-text-secondary);
}

.field-value {
    font-size: 14px;
    color: var(--emby-text);
    max-width: 60%;
    text-align: right;
}

.profile-actions {
    text-align: center;
}

.logout-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--emby-error) 0%, #c0392b 100%);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--emby-text);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

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

@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
    }

    .field-value {
        max-width: 70%;
        text-align: right;
    }
}
