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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.activate-container {
    max-width: 480px;
    width: 100%;
    background: white;
    border-radius: 32px;
    padding: 50px 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: fadeIn 0.5s ease;
}

.sandbox-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.activate-container .brand-icon {
    font-size: 2.5rem;
    color: #ffb347;
    margin-bottom: 10px;
}

.activate-container h1 {
    color: #0d47a1;
    margin-bottom: 8px;
    font-size: 2rem;
}

.activate-container .subtitle {
    color: #475569;
    margin-bottom: 30px;
    font-size: 1rem;
}

.plan-badge {
    display: inline-block;
    background: #e6edff;
    color: #0d47a1;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #0d47a1;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.form-group input[type="email"] {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: border-color 0.2s;
    font-family: 'Inter', sans-serif;
    background: #ffffff;
}

.form-group input[type="email"]:focus {
    border-color: #0d47a1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

.form-group .password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-group .password-wrapper input {
    width: 100%;
    padding: 16px 50px 16px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: border-color 0.2s;
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    flex: 1;
}

.form-group .password-wrapper input:focus {
    border-color: #0d47a1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

.form-group .password-toggle {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 10px;
    transition: color 0.2s;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-group .password-toggle:hover {
    color: #0d47a1;
}

.form-group .password-toggle:focus {
    outline: none;
}

.form-group .password-toggle .fa-eye-slash {
    display: none;
}

.form-group .password-wrapper.show-password .password-toggle .fa-eye {
    display: none;
}

.form-group .password-wrapper.show-password .password-toggle .fa-eye-slash {
    display: inline-block;
}

/* Password hint styles */
.password-hint {
    font-size: 0.85rem;
    margin-top: 4px;
    display: block;
}

.password-hint.success {
    color: #10b981;
}

.password-hint.error {
    color: #dc2626;
}

.form-group .error-text {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 4px;
    display: none;
}

.form-group .helper-text {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 4px;
}

.activate-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(105deg, #0d47a1, #1565c0);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Inter', sans-serif;
    margin-top: 10px;
}

.activate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 71, 161, 0.3);
}

.activate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.activate-btn .spinner {
    display: none;
}

.activate-btn.loading .spinner {
    display: inline-block;
    margin-right: 10px;
}

.activate-btn.loading .btn-text {
    display: none;
}

.activate-btn.loading .btn-loading-text {
    display: inline;
}

.activate-btn .btn-loading-text {
    display: none;
}

/* Success State */
#successMessage {
    display: none;
    text-align: center;
    padding: 10px 0;
}

#successMessage .check-icon {
    font-size: 4rem;
    color: #10b981;
}

#successMessage h2 {
    color: #0d47a1;
    margin: 16px 0 8px;
}

#successMessage p {
    color: #475569;
    margin-bottom: 20px;
}

#successMessage .dashboard-link {
    display: inline-block;
    padding: 12px 32px;
    background: #0d47a1;
    color: white;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

#successMessage .dashboard-link:hover {
    background: #1565c0;
}

/* Result Box for errors */
.result-box {
    margin-top: 20px;
    padding: 20px;
    border-radius: 12px;
    display: none;
}
.result-box.success {
    display: block;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
}
.result-box.error {
    display: block;
    background: #fef2f2;
    border: 1px solid #fca5a5;
}
.result-box h3 {
    margin-bottom: 8px;
}
.result-box .details {
    font-family: monospace;
    font-size: 0.8rem;
    background: rgba(0,0,0,0.05);
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    word-break: break-all;
}

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

/* =============================================
   MOBILE RESPONSIVE - FIXED VERSION
   ============================================= */

/* Small screens (tablets and large phones) */
@media (max-width: 768px) {
    body {
        padding: 20px !important;  /* Ensure padding is applied */
        align-items: center;
        min-height: 100vh;
    }
    
    .activate-container {
        padding: 30px 25px;
        border-radius: 28px;
        margin: 10px 0;  /* Add some margin top/bottom */
    }
}

/* Extra small screens (phones) */
@media (max-width: 520px) {
    body {
        padding: 15px !important;  /* Slightly less padding on very small screens */
        align-items: flex-start;    /* Start from top on very small screens */
        padding-top: 20px !important;  /* Ensure top spacing */
    }
    
    .activate-container {
        padding: 25px 18px;
        border-radius: 24px;
        margin: 10px 0 20px 0;  /* Add top and bottom margin */
        max-width: 100%;
    }
    
    .activate-container h1 {
        font-size: 1.6rem;
    }
    
    .form-group input[type="email"] {
        padding: 14px 16px;
        font-size: 1rem;
    }
    
    .form-group .password-wrapper input {
        padding: 14px 44px 14px 16px;
        font-size: 1rem;
    }
    
    .activate-btn {
        padding: 14px;
        font-size: 1rem;
    }
}

/* =============================================
   SAFARI-ONLY OVERRIDES
   ============================================= */
@supports (-webkit-hyphens:none) {
    html {
        font-size: 22px !important;
    }
    
    body {
        font-size: 22px !important;
        padding: 20px !important;  /* Ensure padding on Safari */
    }
    
    .company-logo img { 
        height: 52px !important; 
    }
    
    .header-cta a {
        font-size: 0.95rem !important;
        padding: 0.4rem 1.1rem !important;
    }
} 