/* Authentication Styles */

.spotify-connect-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1DB954 0%, #191414 100%);
    position: relative;
    overflow: hidden;
}

.connect-card {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 10;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spotify-logo {
    font-size: 100px;
    color: #1DB954;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.connect-card h1 {
    color: #191414;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.subtitle {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

.connect-btn {
    background: #1DB954;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 auto 2.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(29, 185, 84, 0.3);
}

.connect-btn:hover {
    background: #1ed760;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(29, 185, 84, 0.5);
}

.connect-btn:active {
    transform: translateY(-1px);
}

.connect-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.connect-btn i {
    font-size: 1.5rem;
}

.benefits {
    border-top: 2px solid #f0f0f0;
    padding-top: 2rem;
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0.75rem 0;
    color: #1DB954;
    font-weight: 500;
    font-size: 1rem;
}

.benefit-item i {
    font-size: 1.2rem;
}

.security-note {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.security-note i {
    color: #1DB954;
}

/* Background Animation */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.music-note {
    position: absolute;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.1);
    animation: float 15s infinite;
}

.note-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.note-2 {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.note-3 {
    top: 40%;
    left: 20%;
    animation-delay: 4s;
}

.note-4 {
    top: 70%;
    left: 60%;
    animation-delay: 6s;
}

.note-5 {
    top: 30%;
    left: 70%;
    animation-delay: 8s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
        opacity: 0.3;
    }
}

/* User Profile Component */
.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #1DB954;
}

.user-profile span {
    color: white;
    font-weight: 500;
    margin-right: 0.5rem;
}

.logout-btn,
.login-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.logout-btn:hover,
.login-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.login-btn {
    background: #1DB954;
    border: 1px solid #1DB954;
}

.login-btn:hover {
    background: #1ed760;
    border-color: #1ed760;
}

/* Connection Status */
.connection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(29, 185, 84, 0.1);
    border: 1px solid #1DB954;
    border-radius: 25px;
    color: #1DB954;
    font-weight: 500;
    font-size: 0.9rem;
}

.connection-status .check-icon {
    color: #1DB954;
    font-size: 1.2rem;
}

.connection-status .spotify-mini-icon {
    font-size: 1rem;
}

/* Loading Spinner */
.loading-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1DB954 0%, #191414 100%);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-screen p {
    color: white;
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

/* Error Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .connect-card {
        padding: 2rem 1.5rem;
    }

    .connect-card h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .connect-btn {
        padding: 0.875rem 2rem;
        font-size: 1.1rem;
    }

    .spotify-logo {
        font-size: 80px;
    }
}

/* Authentication Forms */
.auth-form {
    width: 100%;
    text-align: left;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group label i {
    color: #1DB954;
    margin-right: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #1DB954;
    box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.1);
}

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

.form-switch {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.form-switch a {
    color: #1DB954;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-switch a:hover {
    color: #1ed760;
    text-decoration: underline;
}

.error-message {
    background: #ff4444;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.connect-btn {
    width: 100%;
    margin-bottom: 1rem;
}

