/* 
    Project: AI Video Generation - Neo-Boutique (Refined Spacing)
    Theme: Modern Minimalist
*/

:root {
    --bg-main: #fafafa;
    --card-bg: #ffffff;
    --ink-black: #111111;
    --border-soft: #e2e8f0; /* Slightly cooler grey */
    --text-body: #475569;
    --accent-blue: #006fee;
    --shadow-subtle: 0 1px 3px rgba(0,0,0,0.1), 0 10px 20px rgba(0,0,0,0.05);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
    background-color: var(--bg-main);
    color: var(--ink-black);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.main-content {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.card {
    background: var(--card-bg);
    padding: 48px 40px;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-subtle);
}

h2 {
    margin: 0 0 12px 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
}

/* Vertical Spacing for Input Groups */
.input-group {
    position: relative;
    width: 100%;
    margin-bottom: 24px; /* Creates consistent spacing between fields */
}

/* Internal Padding for Inputs */
input {
    width: 100%;
    padding: 14px 16px; /* Vertical padding (14px) and horizontal (16px) */
    font-size: 16px;
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    color: var(--ink-black);
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

/* Margin specifically for the first input to separate it from the header/badge */
.input-group:first-of-type {
    margin-top: 10px;
}

input:focus {
    border-color: var(--ink-black);
    box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.05);
}

/* Eye Icon Vertical Centering */
.toggle-pass {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    font-size: 18px;
    padding: 4px;
}

/* Button Spacing */
.plat-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--ink-black);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 12px; /* Margin above button */
}

.plat-btn:hover {
    background-color: #2d3748;
    transform: translateY(-1px);
}

.plat-btn:active {
    transform: translateY(0);
}

/* Badge Styling */
.trial-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #1e293b;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 30px; /* Large margin below badge to separate from inputs */
    border: 1px solid #f1f5f9;
}

/* Footer Link Spacing */
.switch-link {
    text-align: center;
    margin-top: 28px;
    font-size: 0.9rem;
    color: var(--text-body);
}

.switch-link a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

/* Message System */
#auth-msg {
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    text-align: center;
}

.msg-error {
    background-color: #fff1f2;
    color: #e11d48;
}

.msg-success {
    background-color: #f0fdf4;
    color: #16a34a;
}

@media (max-width: 480px) {
    .card {
        padding: 40px 24px;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }
}