
:root{
    --bg:#05070d;
    --card:rgba(15,23,42,.72);
    --card2:rgba(255,255,255,.07);
    --border:rgba(255,255,255,.13);
    --gold:#d6a94f;
    --gold2:#ffe2a0;
    --blue:#38bdf8;
    --green:#22c55e;
    --red:#ef4444;
    --text:#f8fafc;
    --muted:#94a3b8;
    --shadow:0 30px 90px rgba(0,0,0,.45);
}

*{box-sizing:border-box}

body{
    margin:0;
    min-height:100vh;
    font-family:Inter,"Segoe UI",Arial,sans-serif;
    color:var(--text);
    background:
            radial-gradient(circle at top left,rgba(214,169,79,.22),transparent 35%),
            radial-gradient(circle at top right,rgba(56,189,248,.16),transparent 32%),
            linear-gradient(135deg,#05070d,#0b1020 50%,#05070d);
    overflow-x:hidden;
}

body::before{
    content:"";
    position:fixed;
    inset:0;
    background:url("/img/despre.gif") center/cover no-repeat;
    opacity:.18;
    z-index:-2;
}

body::after{
    content:"";
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.56);
    z-index:-1;
}

.top-bar{
    width:min(1180px,calc(100% - 32px));
    margin:18px auto 0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:14px 16px;
    border:1px solid var(--border);
    border-radius:24px;
    background:rgba(5,8,15,.72);
    backdrop-filter:blur(20px);
    box-shadow:0 18px 60px rgba(0,0,0,.26);
    position:relative;
    z-index:5;
}

.logo{
    display:flex;
    align-items:center;
    gap:12px;
    color:var(--text);
    text-decoration:none;
    font-weight:900;
    letter-spacing:.2px;
}

.logo img{
    height:46px;
    display:block;
}

.logo::after{
    content:"DriveStudio";
    font-size:20px;
}

.auth-buttons{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    justify-content:flex-end;
}

.auth-buttons button,
button{
    border:0;
    border-radius:16px;
    padding:11px 17px;
    cursor:pointer;
    color:white;
    font-weight:900;
    transition:.2s ease;
}

.auth-buttons button{
    background:rgba(255,255,255,.08);
    border:1px solid var(--border);
}

.auth-buttons button:hover,
button:hover{
    transform:translateY(-2px);
    filter:brightness(1.08);
}

.auth-buttons button:first-child{
    background:linear-gradient(135deg,#2563eb,#38bdf8);
    border-color:transparent;
}

.container{
    width:min(1180px,calc(100% - 32px));
    margin:34px auto 0;
    min-height:calc(100vh - 190px);
    display:grid;
    grid-template-columns:1.08fr .92fr;
    gap:26px;
    align-items:stretch;
}

.hero{
    border:1px solid var(--border);
    border-radius:34px;
    padding:42px;
    background:
            radial-gradient(circle at top left,rgba(214,169,79,.18),transparent 40%),
            linear-gradient(145deg,rgba(15,23,42,.76),rgba(255,255,255,.045));
    box-shadow:var(--shadow);
    backdrop-filter:blur(22px);
    display:flex;
    flex-direction:column;
    justify-content:center;
    overflow:hidden;
    position:relative;
}

.hero::before{
    content:"";
    position:absolute;
    width:320px;
    height:320px;
    border-radius:50%;
    right:-120px;
    top:-120px;
    background:rgba(56,189,248,.14);
    filter:blur(4px);
}

.kicker{
    color:var(--gold2);
    text-transform:uppercase;
    letter-spacing:.18em;
    font-size:12px;
    font-weight:900;
    margin-bottom:12px;
}

h1{
    margin:0;
    font-size:clamp(38px,6vw,76px);
    line-height:.98;
    letter-spacing:-2.4px;
}

.hero p{
    max-width:620px;
    color:#dbeafe;
    font-size:18px;
    line-height:1.65;
    margin:22px 0 0;
}

.hero-points{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
    margin-top:30px;
}

.point{
    padding:16px;
    border-radius:20px;
    background:rgba(255,255,255,.06);
    border:1px solid var(--border);
}

.point strong{
    display:block;
    color:var(--gold2);
    margin-bottom:5px;
}

.point span{
    color:var(--muted);
    font-size:14px;
}

.upload-card{
    border:1px solid var(--border);
    border-radius:34px;
    padding:30px;
    background:rgba(5,8,15,.72);
    backdrop-filter:blur(24px);
    box-shadow:var(--shadow);
}

.upload-card h2{
    margin:0;
    font-size:30px;
}

.upload-card .sub{
    margin:8px 0 24px;
    color:var(--muted);
    line-height:1.5;
}

.field{
    display:grid;
    gap:8px;
    margin-bottom:15px;
}

.field span{
    color:var(--muted);
    font-weight:800;
}

input[type="text"],
input[type="file"]{
    width:100%;
    padding:14px 15px;
    border-radius:18px;
    border:1px solid var(--border);
    outline:none;
    background:rgba(2,6,23,.76);
    color:var(--text);
    transition:.18s ease;
}

input[type="text"]:focus,
input[type="file"]:focus{
    border-color:var(--gold);
    box-shadow:0 0 0 4px rgba(214,169,79,.13);
}

input::file-selector-button{
    margin-right:12px;
    border:0;
    border-radius:13px;
    padding:9px 13px;
    background:rgba(214,169,79,.18);
    color:var(--gold2);
    font-weight:900;
    cursor:pointer;
}

.upload-btn{
    width:100%;
    margin-top:6px;
    padding:15px 20px;
    font-size:16px;
    background:linear-gradient(135deg,#15803d,#22c55e);
    box-shadow:0 16px 34px rgba(34,197,94,.24);
}

.progress-bar{
    width:100%;
    height:18px;
    background:rgba(255,255,255,.08);
    border:1px solid var(--border);
    border-radius:999px;
    margin:20px auto 0;
    overflow:hidden;
}

.progress-bar-fill{
    height:100%;
    width:0%;
    background:linear-gradient(90deg,var(--green),var(--blue),var(--gold));
    text-align:center;
    color:#031014;
    line-height:18px;
    font-weight:900;
    font-size:12px;
    transition:width .25s ease;
}

#uploadResult{
    margin-top:18px;
    padding:0;
}

#uploadResult p{
    margin:10px 0;
    padding:14px;
    border-radius:18px;
    background:rgba(255,255,255,.06);
    border:1px solid var(--border);
    color:var(--text) !important;
}

#uploadResult a{
    color:var(--gold2);
    word-break:break-all;
    font-weight:900;
}

.link-buttons{
    margin-top:14px;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.link-buttons button{
    flex:1;
    min-width:160px;
    background:linear-gradient(135deg,#2563eb,#38bdf8);
}

.error{
    margin-top:14px;
    padding:12px 14px;
    border-radius:16px;
    color:#fecaca !important;
    background:rgba(239,68,68,.12);
    border:1px solid rgba(239,68,68,.22);
    min-height:0;
    font-weight:800;
}

.note{
    margin-top:18px;
    padding:16px;
    border-radius:20px;
    background:rgba(214,169,79,.10);
    border:1px solid rgba(214,169,79,.24);
    color:#fef3c7;
    line-height:1.5;
    font-size:14px;
}

footer{
    width:min(1180px,calc(100% - 32px));
    margin:26px auto 20px;
    text-align:center;
    color:var(--muted);
}

@media(max-width:900px){
    .container{
        grid-template-columns:1fr;
    }

    .hero-points{
        grid-template-columns:1fr;
    }
}

@media(max-width:620px){
    .top-bar{
        flex-direction:column;
        align-items:stretch;
    }

    .auth-buttons button{
        flex:1;
    }

    .hero,
    .upload-card{
        padding:22px;
        border-radius:24px;
    }

    .logo::after{
        font-size:18px;
    }
}


/* =========================================================
   DriveStudio MOBILE INDEX PATCH - non destructive
   ========================================================= */
@media (max-width: 760px) {
    html, body { width: 100%; overflow-x: hidden; }
    body { -webkit-text-size-adjust: 100%; }

    .top-bar {
        width: calc(100% - 20px);
        margin: 10px auto 0;
        padding: 10px;
        border-radius: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .logo {
        justify-content: center;
    }
    .logo img { max-width: 165px; height: auto; max-height: 42px; object-fit: contain; }
    .logo::after { font-size: 18px; }

    .auth-buttons {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 100%;
    }
    .auth-buttons button,
    button {
        width: 100%;
        min-height: 44px;
        padding: 10px 11px;
        border-radius: 14px;
        font-size: 14px;
    }

    .container {
        width: calc(100% - 20px);
        margin: 14px auto 0;
        min-height: auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hero,
    .upload-card {
        padding: 20px 16px;
        border-radius: 24px;
    }
    .hero { min-height: auto; }
    h1 {
        font-size: clamp(34px, 13vw, 54px);
        line-height: 1.02;
        letter-spacing: -1.3px;
    }
    .hero p {
        font-size: 15px;
        line-height: 1.55;
        margin-top: 16px;
    }
    .hero-points {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 18px;
    }
    .point { padding: 13px; border-radius: 16px; }

    .upload-card h2 { font-size: 26px; }
    .upload-card .sub { font-size: 15px; margin-bottom: 18px; }

    input[type="text"],
    input[type="file"] {
        min-height: 48px;
        font-size: 16px;
        border-radius: 16px;
    }
    input::file-selector-button {
        display: block;
        width: 100%;
        margin: 0 0 8px 0;
        padding: 12px;
    }
    .upload-btn { min-height: 52px; }
    .link-buttons { display: grid; grid-template-columns: 1fr; }
    .link-buttons button { min-width: 0; }
    footer { width: calc(100% - 20px); margin-top: 18px; }
}

@media (max-width: 420px) {
    .auth-buttons { grid-template-columns: 1fr; }
    .logo::after { font-size: 16px; }
    .hero, .upload-card { padding: 18px 14px; }
}
