/* =====================================================
   REGISTER PAGE STYLES
   ===================================================== */

.register-container {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    background: #f8fafc;
}

/* ---- Registration Card ---- */
.register-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
    animation: fadeSlideUp 0.45s ease;
}

.register-card:hover {
    box-shadow: 0 20px 40px -10px rgba(37,99,235,0.12);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

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

.register-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 24px rgba(59,130,246,0.4);
}

.register-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    margin: 0 0 0.4rem;
}

.register-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 0 1.5rem;
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.25);
    color: #10b981;
    border-radius: 50px;
    padding: 0.45rem 1rem;
    font-size: 0.78rem;
    font-weight: 500;
    margin-bottom: 1.75rem;
}

/* ---- Error Box ---- */
.error-box {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

/* ---- Input Wrapper with Icon ---- */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
}

.input-wrapper .input-field {
    padding-left: 2.6rem !important;
}

.optional-tag {
    color: #8b949e;
    font-weight: 400;
    font-size: 0.78rem;
}

/* ---- Disclaimer Box ---- */
.disclaimer-box {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 0.825rem;
    color: #1d4ed8;
    margin-bottom: 1.5rem;
    line-height: 1.55;
}

.disclaimer-box i {
    margin-top: 2px;
    flex-shrink: 0;
    color: #2563eb;
}

.disclaimer-box strong {
    color: #1e40af;
}

/* ---- Register Button ---- */
.btn-register {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(59,130,246,0.35);
    letter-spacing: 0.2px;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59,130,246,0.5);
}

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

/* ---- Login Redirect ---- */
.login-redirect {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.login-redirect a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.login-redirect a:hover { color: #60a5fa; }

/* =====================================================
   SUCCESS VIEW
   ===================================================== */

.success-card {
    background: #ffffff;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 40px -10px rgba(16,185,129,0.15);
    animation: fadeSlideUp 0.45s ease;
    text-align: center;
}

.success-icon-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(16,185,129,0.12);
    border: 2px solid rgba(16,185,129,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #10b981;
    margin: 0 auto 1.25rem;
    animation: popIn 0.5s cubic-bezier(.26,1.6,.6,1) 0.3s both;
}

@keyframes popIn {
    from { transform: scale(0.3); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.success-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.success-sub {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 0 2rem;
    line-height: 1.6;
}

.success-sub strong {
    color: #0f172a;
}

/* ---- Serial Number Reveal ---- */
.serial-reveal-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.serial-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8b949e;
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: center;
}

.serial-display-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
}

.serial-value {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: 0.1em;
    word-break: break-all;
}

.copy-btn {
    background: rgba(59,130,246,0.15);
    border: 1px solid rgba(59,130,246,0.3);
    color: #60a5fa;
    border-radius: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.copy-btn:hover, .copy-btn.copied {
    background: rgba(16,185,129,0.15);
    border-color: rgba(16,185,129,0.4);
    color: #10b981;
    transform: scale(1.1);
}

.copy-feedback {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: #10b981;
    font-size: 0.8rem;
    margin-top: 0.6rem;
    font-weight: 500;
}

/* ---- Warning Save Box ---- */
.warning-save-box {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.25);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    text-align: left;
    margin-bottom: 1.75rem;
}

.warning-save-box > i {
    font-size: 1.2rem;
    color: #f59e0b;
    margin-top: 2px;
    flex-shrink: 0;
}

.warning-save-box strong {
    display: block;
    color: #92400e;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.warning-save-box p {
    color: #b45309;
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.5;
}

/* ---- Success Actions ---- */
.success-actions {
    margin-bottom: 1.5rem;
}

.btn-go-login {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(16,185,129,0.35);
}

.btn-go-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16,185,129,0.5);
}

/* ---- Account Summary ---- */
.account-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    border-bottom: 1px solid #e2e8f0;
    color: #64748b;
}

.summary-row:last-child { border-bottom: none; }
.summary-row strong { color: #0f172a; }
.summary-row .green-text { color: #10b981; }

/* ---- Responsive ---- */
@media (max-width: 520px) {
    .register-card,
    .success-card { padding: 2rem 1.25rem; }
    .serial-value { font-size: 1.2rem; }
}
