
/* Import main styles */
@import url('../../css/styles.css');

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #000011 0%, #001122 25%, #002244 50%, #001133 75%, #000011 100%);
}

.bg-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.bg-particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.bg-particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.bg-particle:nth-child(3) {
    top: 80%;
    left: 40%;
    animation-delay: 4s;
}

.bg-particle:nth-child(4) {
    top: 40%;
    left: 60%;
    animation-delay: 1s;
}

.bg-particle:nth-child(5) {
    top: 10%;
    left: 90%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

/* Musify Auth Specific Styles */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: inherit;
}

.auth-box {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid var(--electric-blue);
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow);
    text-align: center;
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: var(--electric-blue);
    font-family: var(--cyberpunk-font);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--electric-blue);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--navy-blue);
    border-radius: 10px;
    background: var(--dark-bg);
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--electric-blue);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.form-group.error input {
    border-color: #dc3545;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
}

.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    border-radius: 2px;
    background: var(--navy-blue);
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    width: 0%;
}

.strength-fill.weak { background: #dc3545; }
.strength-fill.medium { background: #ffc107; }
.strength-fill.strong { background: #28a745; }

.strength-text {
    font-size: 0.8rem;
    margin-top: 0.3rem;
    color: var(--text-gray);
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-auth {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient);
    color: var(--text-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--electric-blue);
    border: 2px solid var(--electric-blue);
}

.btn-secondary:hover {
    background: var(--electric-blue);
    color: var(--navy-blue);
}

.auth-links {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--navy-blue);
}

.auth-links a {
    color: var(--electric-blue);
    text-decoration: none;
    transition: var(--transition);
}

.auth-links a:hover {
    color: var(--text-light);
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
    .auth-box {
        padding: 2rem;
        margin: 1rem;
    }
    
    .auth-header h1 {
        font-size: 2rem;
    }
}
