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

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header ===== */
.header {
    text-align: center;
    padding: 60px 20px 40px;
}

.header .logo {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.header .subtitle {
    color: #94a3b8;
    font-size: 1.1rem;
}

/* ===== Book Section ===== */
.book-section {
    display: flex;
    gap: 40px;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid rgba(255,255,255,0.06);
}

.book-cover {
    flex-shrink: 0;
}

.book-cover img {
    width: 340px;
    height: 220px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    object-fit: cover;
}

.book-info h2 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
}

.book-info .author {
    color: #60a5fa;
    font-size: 1rem;
    margin-bottom: 16px;
}

.book-info .description {
    color: #cbd5e1;
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.8;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.features span {
    background: rgba(59,130,246,0.15);
    color: #93c5fd;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ===== Form Section ===== */
.form-section {
    background: rgba(255,255,255,0.04);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.06);
    max-width: 600px;
    margin: 0 auto 40px;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 6px;
}

.form-header p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Google button */
.google-btn-wrapper {
    margin-bottom: 30px;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: #fff;
    color: #333;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-family: 'Cairo', sans-serif;
}

.btn-google:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-google i {
    font-size: 1.2rem;
    color: #4285F4;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

.divider span {
    background: #1e293b;
    padding: 0 16px;
    color: #64748b;
    position: relative;
    font-size: 0.9rem;
}

/* Form fields */
.register-form .form-group {
    margin-bottom: 20px;
}

.register-form label {
    display: block;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.register-form label i {
    margin-left: 6px;
    color: #60a5fa;
}

.register-form input,
.register-form select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: all 0.2s;
    outline: none;
}

.register-form input:focus,
.register-form select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}

.register-form input::placeholder {
    color: #475569;
}

.register-form select option {
    background: #1e293b;
    color: #e2e8f0;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: 'Cairo', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* ===== Alerts ===== */
.alert {
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-error {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.3);
    color: #86efac;
}

/* ===== Download Ready ===== */
.download-ready {
    text-align: center;
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: 20px;
    padding: 50px;
    max-width: 500px;
    margin: 0 auto 40px;
}

.download-ready i {
    font-size: 3rem;
    color: #22c55e;
    margin-bottom: 16px;
}

.download-ready h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.download-ready p {
    color: #94a3b8;
    margin-bottom: 24px;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 30px;
    color: #475569;
    font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .book-section {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .book-cover img {
        width: 260px;
        height: 170px;
    }

    .book-info h2 {
        font-size: 1.4rem;
    }

    .features {
        justify-content: center;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-section {
        padding: 24px;
    }

    .header .logo {
        font-size: 1.5rem;
    }
}
