/**
 * Spotify Security Test - Main Stylesheet
 * Clean and professional design matching Spotify's official style
 */

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --spotify-green: #1db954;
    --spotify-green-hover: #1ed760;
    --spotify-black: #191414;
    --spotify-dark-gray: #121212;
    --spotify-gray: #535353;
    --spotify-light-gray: #b3b3b3;
    --spotify-white: #ffffff;
    --spotify-error: #f15e6c;
    --spotify-warning: #ffa42b;
    --border-radius: 4px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Circular', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #1e3c72 1%, #2a5298 100%);
    color: var(--spotify-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background-color: var(--spotify-black);
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-content {
    max-width: 450px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.spotify-logo {
    display: inline-block;
    width: 132px;
    height: 40px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMTM0IDM1MCI+PHBhdGggZmlsbD0iI2ZmZmZmZiIgZD0iTTggMTcxYzAtNDcgMzgtODUgODUtODVzODUgMzggODUgODUtMzggODUtODUgODUtODUtMzgtODUtODV6bTEzOSAxN2MtMjQgMTQtNTcgMjItOTIgMjItMzUgMC02OC04LTkyLTIyLTUtMy02LTktMy0xNCAzLTUgOS02IDE0LTMgMjEgMTIgNTAgMTkgODEgMTkgMzEgMCA2MC03IDgxLTE5IDUtMyAxMS0yIDE0IDMgMyA1IDIgMTEtMyAxNHptLTEwLTQwYy0yMCAxMi00NyAxOC03NiAxOC0yOSAwLTU2LTYtNzYtMTgtNC0yLTUtOC0zLTEyIDItNCA4LTUgMTItMyAxOCAxMCA0MiAxNiA2NyAxNiAyNSAwIDQ5LTYgNjctMTYgNC0yIDEwLTEgMTIgMyAyIDQgMSAxMC0zIDEyem0tOS0zN2MtMjMgMTQtNTQgMjItODcgMjItMzMgMC02NC04LTg3LTIyLTQtMi01LTctMy0xMSAyLTQgNy01IDExLTMgMjAgMTIgNDggMTkgNzkgMTkgMzEgMCA1OS03IDc5LTE5IDQtMiA5LTEgMTEgMyAyIDQgMSA5LTMgMTF6bTEzNy0zOGMwLTQ3IDM4LTg1IDg1LTg1czg1IDM4IDg1IDg1LTM4IDg1LTg1IDg1LTg1LTM4LTg1LTg1em0xMzkgMTdjLTI0IDE0LTU3IDIyLTkyIDIyLTM1IDAtNjgtOC05Mi0yMi01LTMtNi05LTMtMTQgMy01IDktNiAxNC0zIDIxIDEyIDUwIDE5IDgxIDE5IDMxIDAgNjAtNyA4MS0xOSA1LTMgMTEtMiAxNCAzIDMgNSAyIDExLTMgMTR6bS0xMC00MGMtMjAgMTItNDcgMTgtNzYgMTgtMjkgMC01Ni02LTc2LTE4LTQtMi01LTgtMy0xMiAyLTQgOC01IDEyLTMgMTggMTAgNDIgMTYgNjcgMTYgMjUgMCA0OS02IDY3LTE2IDQtMiAxMC0xIDEyIDMgMiA0IDEgMTAtMyAxMnptLTktMzdjLTIzIDE0LTU0IDIyLTg3IDIyLTMzIDAtNjQtOC04Ny0yMi00LTItNS03LTMtMTEgMi00IDctNSAxMS0zIDIwIDEyIDQ4IDE5IDc5IDE5IDMxIDAgNTktNyA3OS0xOSA0LTIgOS0xIDExIDMgMiA0IDEgOS0zIDExeiIvPjwvc3ZnPg==');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.form-container {
    background-color: var(--spotify-black);
    border-radius: 8px;
    padding: 48px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 4px 60px rgba(0, 0, 0, 0.5);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 20px;
}

h1 {
    font-size: 48px;
    text-align: center;
    letter-spacing: -0.04em;
}

h2 {
    font-size: 32px;
    text-align: center;
}

h3 {
    font-size: 24px;
}

p {
    color: var(--spotify-light-gray);
    font-size: 14px;
    margin-bottom: 16px;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--spotify-white);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--spotify-gray);
    border-radius: var(--border-radius);
    background-color: var(--spotify-dark-gray);
    color: var(--spotify-white);
    font-size: 16px;
    transition: var(--transition);
    outline: none;
}

input:focus {
    border-color: var(--spotify-white);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

input.error {
    border-color: var(--spotify-error);
}

input::placeholder {
    color: var(--spotify-gray);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 500px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--spotify-green);
    color: var(--spotify-black);
}

.btn-primary:hover {
    background-color: var(--spotify-green-hover);
    transform: scale(1.04);
}

.btn-primary:active {
    transform: scale(0.96);
}

.btn-secondary {
    background-color: transparent;
    color: var(--spotify-white);
    border: 2px solid var(--spotify-gray);
}

.btn-secondary:hover {
    border-color: var(--spotify-white);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   CHECKBOX
   ============================================ */
.checkbox-container {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-container label {
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

/* ============================================
   LINKS
   ============================================ */
a {
    color: var(--spotify-white);
    text-decoration: underline;
    transition: var(--transition);
}

a:hover {
    color: var(--spotify-green);
}

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

/* ============================================
   DIVIDER
   ============================================ */
.divider {
    display: flex;
    align-items: center;
    margin: 32px 0;
    color: var(--spotify-light-gray);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--spotify-gray);
}

.divider span {
    padding: 0 16px;
    font-size: 12px;
    font-weight: 700;
}

/* ============================================
   ERROR MESSAGES
   ============================================ */
.error-message {
    background-color: rgba(241, 94, 108, 0.1);
    border: 1px solid var(--spotify-error);
    border-radius: var(--border-radius);
    padding: 12px;
    margin-bottom: 20px;
    color: var(--spotify-error);
    font-size: 14px;
    display: none;
}

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

/* ============================================
   LOADING OVERLAY
   ============================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}

.loading-content {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--spotify-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-text {
    font-size: 18px;
    margin-bottom: 10px;
}

.loading-subtext {
    font-size: 14px;
    color: var(--spotify-light-gray);
}

/* ============================================
   CARD ICONS
   ============================================ */
.card-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

.card-icon {
    width: 40px;
    height: 25px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--spotify-black);
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: var(--spotify-light-gray);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--spotify-light-gray);
    text-decoration: none;
    font-size: 12px;
}

.footer-links a:hover {
    color: var(--spotify-white);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .form-container {
        padding: 32px 24px;
    }
    
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .main-container {
        padding: 20px 10px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 24px 16px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 20px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.hidden { display: none !important; }
.visible { display: block !important; }
