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

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

/* Login Container */
.login-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin: 1rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #666;
    font-size: 0.9rem;
}

/* Form Elements */
#login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
}

input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Buttons */
button {
    background: #2563eb;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background: #1d4ed8;
}

/* Error States */
.error-message {
    display: none;
    color: #dc2626;
    font-size: 0.9rem;
    padding: 0.5rem;
    background: #fef2f2;
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* Spotify Error Page */
.error-icon {
    color: #dc2626;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-container {
    text-align: center;
}

.error-message {
    color: #dc2626;
    margin-bottom: 1.5rem;
}

.retry-button {
    background: #dc2626;
    margin-bottom: 1rem;
}

.retry-button:hover {
    background: #b91c1c;
}

/* Spotify Success Page */
.success-icon {
    color: #059669;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.success-container {
    text-align: center;
}

.success-message {
    color: #059669;
    margin-bottom: 1.5rem;
}

/* Secondary Buttons */
.close-button {
    background: #6b7280;
}

.close-button:hover {
    background: #4b5563;
}

/* Success State Override */
.success-container .close-button {
    background: #059669;
}

.success-container .close-button:hover {
    background: #047857;
}

/* Spotify Connect Page */
.connect-container {
    text-align: center;
}

.spotify-icon {
    margin-bottom: 1.5rem;
}

.connect-message {
    color: #4b5563;
    margin-bottom: 2rem;
}

.permission-list {
    text-align: left;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 6px;
}

.permission-list h2 {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 0.75rem;
}

.permission-list ul {
    list-style: none;
    padding-left: 0;
}

.permission-list li {
    color: #6b7280;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.permission-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #059669;
}

.spotify-button {
    background-color: #1DB954;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 16px;
    cursor: pointer;
    margin: 1rem 0;
}

.spotify-button:hover {
    background-color: #1ed760;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

h1 {
    color: #333;
    margin-bottom: 1rem;
}

p {
    color: #666;
    margin-bottom: 1rem;
} 