/* style.css - Common styles for AllureStay authentication pages */
:root {
    --neon-pink: #ff00ff;
    --neon-blue: #00ffff;
    --neon-green: #39ff14;
    --neon-yellow: #ffff00;
    --neon-orange: #ff5e00;
    --dark-bg: #0f0f1a;
    --card-bg: #1a1a2e;
    --text-light: #f0f0f0;
    --text-dim: #b0b0c0;
    --error-red: #ff6b6b;
    --success-green: #39ff14;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 0, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(57, 255, 20, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundMove 20s infinite alternate ease-in-out;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-20px, 20px) scale(1.1); }
}

/* Container Styles */
.auth-container {
    width: 100%;
    max-width: 420px;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 0, 255, 0.3);
    box-shadow:
        0 0 40px rgba(255, 0, 255, 0.3),
        0 0 80px rgba(0, 255, 255, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin: 20px 0;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        transparent 30%,
        rgba(255, 0, 255, 0.1) 50%,
        transparent 70%);
    animation: shine 3s infinite linear;
    z-index: -1;
}

@keyframes shine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.logo-icon {
    font-size: 36px;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: pulse 2s infinite alternate ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px var(--neon-pink));
    }
    100% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px var(--neon-blue));
    }
}

.logo-text {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 1px;
}

/* Typography */
h1, h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--text-light);
    font-family: 'Space Grotesk', sans-serif;
}

.subtitle {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.5;
}

/* Message Styles */
.message {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 25px;
    color: var(--error-red);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.message.success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: var(--success-green);
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message i {
    font-size: 18px;
}

.message.unverified {
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.3);
    color: #f39c12;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--neon-blue);
    font-size: 16px;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    outline: none;
}

.form-input:focus {
    border-color: var(--neon-pink);
    box-shadow:
        0 0 20px rgba(255, 0, 255, 0.3),
        0 0 40px rgba(255, 0, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neon-pink);
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 2;
}

.form-input:focus + .input-icon {
    color: var(--neon-blue);
    transform: translateY(-50%) scale(1.2);
}

.toggle-password {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 2;
}

.toggle-password:hover {
    color: var(--neon-blue);
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: #ff4444;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 12px;
    color: var(--text-dim);
    min-width: 60px;
}

/* Remember Me & Terms */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.remember-me, .terms-group {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-me input[type="checkbox"],
.terms-group input[type="checkbox"] {
    display: none;
}

.checkmark, .terms-checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--neon-blue);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.terms-checkmark {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.remember-me input[type="checkbox"]:checked + .checkmark,
.terms-group input[type="checkbox"]:checked + .terms-checkmark {
    background: var(--neon-blue);
    box-shadow:
        0 0 10px var(--neon-blue),
        0 0 20px rgba(0, 255, 255, 0.3);
    transform: scale(1.1);
}

.remember-me input[type="checkbox"]:checked + .checkmark::after,
.terms-group input[type="checkbox"]:checked + .terms-checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.terms-text {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.5;
}

.terms-text a {
    color: var(--neon-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

.terms-text a:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-blue);
}

/* Button Styles */
.auth-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-orange));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow:
        0 0 20px rgba(255, 0, 255, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.auth-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow:
        0 0 30px rgba(255, 0, 255, 0.6),
        0 15px 40px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, var(--neon-orange), var(--neon-pink));
}

.auth-button:active:not(:disabled) {
    transform: translateY(-1px);
    transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
    z-index: 1;
}

.auth-button:hover:not(:disabled)::after {
    animation: buttonShine 1s ease;
}

@keyframes buttonShine {
    0% {
        opacity: 0;
        transform: translateX(-100%) rotate(45deg);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(100%) rotate(45deg);
    }
}

.auth-button i {
    margin-right: 8px;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.auth-button:hover:not(:disabled) i {
    transform: translateX(5px);
}

/* Link Styles */
.auth-link {
    text-align: center;
    color: var(--text-dim);
    font-size: 15px;
}

.auth-link a {
    color: var(--neon-green);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: inline-block;
}

.auth-link a:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-green);
    transform: scale(1.05);
}

.forgot-password {
    color: var(--neon-blue);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: inline-block;
}

.forgot-password:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-blue);
    transform: scale(1.05);
}

/* Divider */
.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
    color: var(--text-dim);
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 255, 0.3));
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
    background: linear-gradient(90deg, rgba(255, 0, 255, 0.3), transparent);
}

/* Social Buttons */
.social-auth {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 18px;
}

.social-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--neon-pink);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.2);
}

.social-button.google:hover { color: #DB4437; }
.social-button.facebook:hover { color: #4267B2; }
.social-button.apple:hover { color: #A2AAAD; }

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-blue));
    border-radius: 50%;
    opacity: 0.2;
    animation: float 15s infinite linear;
}

.floating-element:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-element:nth-child(2) { top: 60%; left: 80%; animation-delay: 2s; width: 30px; height: 30px; }
.floating-element:nth-child(3) { top: 80%; left: 20%; animation-delay: 4s; background: linear-gradient(45deg, var(--neon-green), var(--neon-yellow)); }
.floating-element:nth-child(4) { top: 40%; left: 90%; animation-delay: 6s; width: 25px; height: 25px; }
.floating-element:nth-child(5) { top: 10%; left: 70%; animation-delay: 8s; background: linear-gradient(45deg, var(--neon-orange), var(--neon-pink)); }

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(90deg); }
    50% { transform: translate(-10px, 20px) rotate(180deg); }
    75% { transform: translate(-20px, -10px) rotate(270deg); }
}

/* Verification Page Specific */
.verification-container {
    max-width: 480px;
    text-align: center;
}

.icon-large {
    font-size: 80px;
    margin-bottom: 30px;
}

.success-icon {
    color: var(--neon-green);
    animation: bounce 1s ease infinite alternate;
}

.error-icon {
    color: #ff4444;
    animation: shake 0.5s ease-in-out;
}

@keyframes bounce {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-10px) scale(1.1); }
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 16px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-orange));
    color: white;
    box-shadow:
        0 0 20px rgba(255, 0, 255, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 30px rgba(255, 0, 255, 0.6),
        0 15px 40px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, var(--neon-orange), var(--neon-pink));
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--neon-pink);
    transform: translateY(-2px);
}

/* Resend Link */
.resend-link {
    margin-top: 10px;
    font-size: 13px;
}

.resend-link a {
    color: var(--neon-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

.resend-link a:hover {
    color: var(--neon-pink);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 480px) {
    body {
        justify-content: flex-start;
        min-height: auto;
        padding: 20px;
        overflow-y: auto;
    }

    .auth-container {
        padding: 30px 25px;
        margin: 20px auto 40px;
        min-height: auto;
    }

    .logo {
        flex-direction: column;
        gap: 10px;
    }

    .logo-text {
        font-size: 28px;
    }

    h1, h2 {
        font-size: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .form-input {
        font-size: 16px;
    }

    .auth-button {
        padding: 20px;
    }

    .remember-forgot {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .social-auth {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .terms-group {
        align-items: flex-start;
    }

    .terms-checkmark {
        margin-top: 4px;
    }

    .icon-large {
        font-size: 60px;
    }
}

@media (max-height: 700px) and (max-width: 480px) {
    .auth-container {
        margin-top: 10px;
        padding: 25px 20px;
    }

    .logo {
        margin-bottom: 20px;
    }

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

    .remember-forgot, .terms-group {
        margin-bottom: 20px;
    }
}

@media (max-width: 350px) {
    .auth-container {
        padding: 25px 20px;
        margin: 15px auto 30px;
    }

    .logo-text {
        font-size: 24px;
    }

    h1, h2 {
        font-size: 22px;
    }

    .form-input {
        padding: 14px 20px 14px 45px;
    }

    .input-icon {
        left: 15px;
    }

    .toggle-password {
        right: 15px;
    }
}
