/* --- METRICS & COLORS (Deep Dark Tech Theme) --- */
:root {
    --primary: #3b82f6;          /* Stripe Blue */
    --primary-hover: #2563eb;
    --success: #10b981;          /* Emerald Green */
    --bg-dark: #0f172a;          /* Slate 900 */
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-white: #f8fafc;
    --text-gray: #94a3b8;
    --input-bg: #1e293b;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* --- RESET & BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
    background-attachment: fixed;
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
}

/* --- MAIN LAYOUT CONTAINER --- */
.main-container {
    display: flex;
    width: 100%;
    max-width: 900px;
    min-height: 550px;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- LEFT SIDE: BRANDING --- */
.brand-section {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-right: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent);
}

.logo-wrap {
    width: 160px;
    height: 160px;
    background: white;
    border-radius: 50%;
    margin-bottom: 25px;
    padding: 8px;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-wrap:hover {
    transform: scale(1.05) rotate(2deg);
}

.logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.brand-section h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
    background: linear-gradient(to right, #fff, var(--text-gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-section p {
    color: var(--text-gray);
    font-size: 15px;
    max-width: 280px;
}

/* --- RIGHT SIDE: FORM & CONTENT --- */
.form-section {
    flex: 1.2;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-section h2 {
    font-size: 26px;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* --- INPUTS & LABELS --- */
.input-group {
    margin-bottom: 22px;
}

.input-group label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-gray);
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

.input-group input {
    width: 100%;
    padding: 16px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: white;
    font-size: 16px;
    transition: all 0.2s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.9);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

/* --- BUTTONS --- */
.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-white);
    border-radius: 12px;
    transition: 0.3s;
    font-weight: 600;
    margin-top: 15px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-gray);
}

/* --- SUCCESS PAGE SPECIFIC --- */
.success-icon {
    width: 84px;
    height: 84px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
}

.success-icon svg {
    width: 44px;
    height: 44px;
}

.details-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin: 25px 0;
}

.details-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.details-row:last-child { margin-bottom: 0; }
.details-row span:first-child { color: var(--text-gray); }
.details-row span:last-child { color: var(--text-white); font-weight: 600; font-family: monospace; }

/* --- FOOTER / SECURE TAG --- */
.secure-tag {
    margin-top: 30px;
    font-size: 12px;
    color: var(--text-gray);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.secure-tag svg {
    color: var(--success);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 850px) {
    body { padding: 20px; align-items: flex-start; }
    .main-container {
        flex-direction: column;
        height: auto;
        max-width: 500px;
    }
    .brand-section {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 40px 20px;
    }
    .form-section {
        padding: 40px 30px;
    }
    .logo-wrap {
        width: 120px;
        height: 120px;
    }
}