/* Background animated gradient */
body, html {
    margin: 0; padding: 0; height: 100%;
    font-family: Inter, sans-serif;
    color: white;
}

.bg-animation {
    position: fixed;
    inset: 0;
    background: linear-gradient(-45deg,#020617,#0f172a,#1e293b,#0ea5e9);
    background-size: 400% 400%;
    animation: gradientMove 12s ease infinite;
    z-index: -1;
}

@keyframes gradientMove {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

/* Card */
.card {
    width: 420px;
    margin: 50px auto;
    padding: 30px 32px;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* Titles */
h1 {
    margin: 0 0 5px;
    text-align: center;
    font-size: 26px;
}
.subtitle {
    text-align: center;
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 20px;
}

/* Floating Labels */
.floating-label {
    position: relative;
    margin-bottom: 20px;
}
.floating-label input {
    width: 100%; padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.05);
    color: white; outline: none;
}
.floating-label label {
    position: absolute;
    top: 50%; left: 14px;
    transform: translateY(-50%);
    pointer-events: none;
    transition: .2s;
    opacity: .6;
}
.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label {
    top: -8px; left: 10px;
    font-size: 11px;
    opacity: .9;
}

/* Button */
button {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: #0ea5e9;
    color: white;
    font-weight: 600;
    transition: .2s;
}
button:hover { opacity: .85; }

/* Drag & Drop */
.drop-zone {
    border: 2px dashed rgba(255,255,255,.35);
    padding: 35px;
    text-align: center;
    border-radius: 14px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: .25s;
}
.drop-zone:hover {
    background: rgba(255,255,255,.08);
}
.drop-zone span {
    font-size: 12px; opacity: .7;
}
.preview {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 20px;
}

/* Loader */
.loader-ring {
    margin: 20px auto;
    width: 60px; height: 60px;
    border: 6px solid rgba(255,255,255,.15);
    border-top-color: #0ea5e9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to {transform: rotate(360deg);}
}

/* Result Card */
.result-card {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255,255,255,.1);
    border-radius: 14px;
    text-align: center;
}
.btn, .btn-secondary {
    display: block; margin: 10px 0;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
}
.btn {
    background: #0ea5e9; color: white;
}
.btn-secondary {
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.3);
    color: white;
}

.hidden { display:none !important; }
