/**
 * XVaultPro Portal - Activation Page Styles
 * Glassmorphism design with tier-specific theming
 */

/* ==================================================
   CONTAINER & LAYOUT
================================================== */

.activation-container {
    min-height: 100vh;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
}

/* Background gradient based on tier */
.activation-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.activation-bg.tier-free {
    background: radial-gradient(ellipse at 50% 0%, rgba(107, 114, 128, 0.1) 0%, transparent 50%);
}

.activation-bg.tier-pro {
    background: radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.12) 0%, transparent 50%);
}

.activation-bg.tier-enterprise {
    background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.12) 0%, transparent 50%);
}

.activation-content {
    position: relative;
    z-index: 1;
    max-width: 580px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ==================================================
   BACK BUTTON
================================================== */

.activation-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 24px;
    transition: color 0.3s;
    opacity: 0;
    animation: fadeInDown 0.5s ease-out 0.1s forwards;
}

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

.activation-back svg {
    width: 18px;
    height: 18px;
}

.activation-back:hover {
    color: var(--vault-emerald);
}

/* ==================================================
   MAIN CARD
================================================== */

.activation-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    animation: cardSlideUp 0.6s ease-out 0.2s forwards;
}

@keyframes cardSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tier-specific card styling */
.activation-card.tier-free {
    border-color: var(--tier-free-border);
}

.activation-card.tier-pro {
    border-color: var(--tier-pro-border);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, var(--glass-bg) 100%);
}

.activation-card.tier-enterprise {
    border-color: var(--tier-enterprise-border);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.05) 0%, var(--glass-bg) 100%);
}

/* ==================================================
   HEADER
================================================== */

.activation-header {
    text-align: center;
    margin-bottom: 40px;
}

.activation-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.activation-badge.tier-free {
    background: var(--tier-free-bg);
    border: 1px solid var(--tier-free-border);
    color: var(--tier-free-light);
}

.activation-badge.tier-pro {
    background: var(--tier-pro-bg);
    border: 1px solid var(--tier-pro-border);
    color: var(--tier-pro);
}

.activation-badge.tier-enterprise {
    background: var(--tier-enterprise-bg);
    border: 1px solid var(--tier-enterprise-border);
    color: var(--tier-enterprise-light);
}

.activation-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.activation-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.activation-header p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* ==================================================
   FORM
================================================== */

.activation-form {
    margin-bottom: 32px;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.label-hint {
    font-weight: 400;
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: 0;
    margin-left: 8px;
    font-size: 11px;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--tier-pro-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--vault-emerald);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.25);
    background: rgba(0, 0, 0, 0.7);
}

.form-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0;
}

/* Tier-specific input focus */
.tier-free .form-group input:focus {
    border-color: var(--tier-free);
    box-shadow: 0 0 25px rgba(107, 114, 128, 0.2);
}

.tier-enterprise .form-group input:focus {
    border-color: var(--tier-enterprise);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.25);
}

/* ==================================================
   ERROR STATE
================================================== */

.activation-error {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #ef4444;
    animation: shakeError 0.5s ease;
}

.activation-error.show {
    display: flex;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.activation-error svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ==================================================
   SUBMIT BUTTON
================================================== */

.activation-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--vault-emerald), var(--vault-dark));
    color: #141414;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.activation-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.activation-btn:hover:not(:disabled)::before {
    left: 100%;
}

.activation-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
}

.activation-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Tier-specific button */
.tier-free .activation-btn {
    background: linear-gradient(135deg, var(--tier-free-light), var(--tier-free));
}

.tier-free .activation-btn:hover:not(:disabled) {
    box-shadow: 0 15px 40px rgba(107, 114, 128, 0.3);
}

.tier-enterprise .activation-btn {
    background: linear-gradient(135deg, var(--tier-enterprise), var(--tier-enterprise-light));
    color: white;
}

.tier-enterprise .activation-btn:hover:not(:disabled) {
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
}

/* ==================================================
   SUCCESS STATE
================================================== */

.activation-success {
    display: none;
    text-align: center;
}

.activation-success.show {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    color: var(--vault-emerald);
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.tier-enterprise .success-icon {
    color: var(--tier-enterprise-light);
}

.activation-success h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.activation-success > p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0 0 28px 0;
}

/* ==================================================
   ACTIVATION CODE BOX
================================================== */

.activation-code-box {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 28px;
    text-align: center;
}

.tier-enterprise .activation-code-box {
    background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
}

.activation-code-box label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--vault-emerald);
    margin-bottom: 14px;
}

.tier-enterprise .activation-code-box label {
    color: var(--tier-enterprise-light);
}

.activation-code-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.4);
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 14px;
}

.activation-code-display code {
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: 18px;
    font-weight: 600;
    color: var(--vault-emerald);
    letter-spacing: 2px;
    word-break: break-all;
}

.tier-enterprise .activation-code-display code {
    color: var(--tier-enterprise-light);
}

.copy-btn {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: var(--vault-emerald);
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: rgba(16, 185, 129, 0.3);
    transform: scale(1.05);
}

.copy-btn.copied {
    background: var(--vault-emerald);
    color: #141414;
}

.tier-enterprise .copy-btn {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    color: var(--tier-enterprise-light);
}

.tier-enterprise .copy-btn:hover {
    background: rgba(139, 92, 246, 0.3);
}

.tier-enterprise .copy-btn.copied {
    background: var(--tier-enterprise);
    color: white;
}

.copy-btn svg {
    width: 18px;
    height: 18px;
}

.activation-code-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ==================================================
   LICENSE DETAILS
================================================== */

.activation-details {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 28px;
}

.tier-enterprise .activation-details {
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-secondary);
    font-size: 13px;
}

.detail-value {
    font-weight: 600;
    font-size: 13px;
}

.detail-value.tier {
    color: var(--vault-emerald);
    text-transform: uppercase;
}

.tier-enterprise .detail-value.tier {
    color: var(--tier-enterprise-light);
}

.detail-value.status-active {
    color: var(--vault-emerald);
}

/* ==================================================
   ACTION BUTTONS
================================================== */

.activation-actions {
    display: flex;
    gap: 14px;
}

.action-btn {
    flex: 1;
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.action-btn.primary {
    background: var(--vault-emerald);
    color: #141414;
}

.action-btn.primary:hover {
    background: var(--vault-light);
    transform: translateY(-2px);
}

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

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.tier-enterprise .action-btn.primary {
    background: var(--tier-enterprise);
    color: white;
}

.tier-enterprise .action-btn.primary:hover {
    background: var(--tier-enterprise-light);
}

/* ==================================================
   INSTRUCTIONS
================================================== */

.activation-instructions {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--glass-border);
}

.activation-instructions h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin: 0 0 20px 0;
    text-align: center;
}

.activation-instructions ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activation-instructions li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-num {
    width: 24px;
    height: 24px;
    background: var(--tier-pro-bg);
    border: 1px solid var(--vault-emerald);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--vault-emerald);
    flex-shrink: 0;
}

.tier-free .step-num {
    background: var(--tier-free-bg);
    border-color: var(--tier-free);
    color: var(--tier-free-light);
}

.tier-enterprise .step-num {
    background: var(--tier-enterprise-bg);
    border-color: var(--tier-enterprise);
    color: var(--tier-enterprise-light);
}

/* ==================================================
   FOOTER LINKS
================================================== */

.activation-footer-links {
    margin-top: 28px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.activation-footer-links p {
    margin: 8px 0;
}

.activation-footer-links a {
    color: var(--vault-emerald);
    text-decoration: none;
    transition: opacity 0.2s;
}

.activation-footer-links a:hover {
    text-decoration: underline;
}

.tier-enterprise .activation-footer-links a {
    color: var(--tier-enterprise-light);
}

/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 600px) {
    .activation-content {
        padding: 24px 16px;
    }

    .activation-card {
        padding: 36px 24px;
    }

    .activation-header h1 {
        font-size: 24px;
    }

    .activation-actions {
        flex-direction: column;
    }

    .activation-code-display {
        flex-direction: column;
        gap: 14px;
    }

    .activation-code-display code {
        font-size: 14px;
    }
}
