
/*
Theme Name: TTS One Page AI
Version: 1.0
*/
*{margin:0;padding:0;box-sizing:border-box}
header.header a, .aiag-logo a {
    text-decoration: none;
}
.grid select {
    margin-top: 10px;
}
.grid label {
    display: inline-block;
    font-size: 16px;
    width: 100%;
    color: #c1c1c1;
    font-weight: bold;
}
header.header img {
    width: 45px;
}
button#tts-preview {
       cursor: pointer;
    margin-top: 28px;
    font-size: 16px;
    height: 45px;
}
.aiag-logo a{color:#fff;}
header.header {
    display: flex;
    justify-content: space-between;
}
.header .dash {
    background: #fff;
    padding: 10px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    opacity: 1;
}
a#tts-download {
    width: auto;
    display: table;
    margin: 20px auto;
    background: #056829;
    text-decoration: none;
}
#aiag-auth-modal{

    display:none;

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,.7);

    z-index:99999;

}

.aiag-auth-box{

    width:400px;

    max-width:90%;

    background:#fff;

    padding:30px;

    border-radius:10px;

    position:absolute;

    top:50%;
    left:50%;

    transform:translate(-50%,-50%);

    text-align:center;

}

#aiag-close-modal{

    float:right;

    cursor:pointer;

    font-size:22px;

}
#tts-preview-player{grid-column: 1 / -1;}
body{font-family:Arial,sans-serif;background:#0A0F1C;color:#fff;min-height:100vh}
.header{padding:20px 40px;display:flex;align-items:center;gap:12px}
.logo{width:42px;height:42px;border-radius:12px;background:#6D5DFC}
.wrap{min-height:calc(100vh - 82px);display:flex;align-items:center;justify-content:center;padding:20px}
.card{width:min(900px,95%);background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:24px;padding:30px}
h1{text-align:center;margin-bottom:10px}
p{text-align:center;color:#b8c0d0;margin-bottom:20px}
textarea,select{width:100%;padding:14px;border-radius:12px;border:1px solid #333;background:#111827;color:#fff}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:15px 0}
.btn{width:100%;padding:14px;border:none;border-radius:12px;background:#6D5DFC;color:#fff;font-weight:bold;cursor:pointer}
.audio{margin-top:15px;width:100%}
@media(max-width:768px){.grid{grid-template-columns:1fr}.header{padding:20px}}



/* LOGIN PAGE */

.auth-page{
    min-height:calc(100vh - 90px);
    display:flex;
    justify-content:center;
    align-items:center;
    padding:40px 20px;
}

.auth-card{
    width:100%;
    max-width:520px;
    background:rgba(255,255,255,.05);
    backdrop-filter:blur(20px);
    border:1px solid rgba(255,255,255,.08);
    border-radius:24px;
    padding:40px;
    box-shadow:0 20px 50px rgba(0,0,0,.45);
}

.logo-circle{
    width:80px;
    height:80px;
    margin:auto;
    border-radius:20px;
    background:linear-gradient(135deg,#7C5CFF,#5B3DF0);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:36px;
}

.auth-title{
    text-align:center;
    color:#fff;
    font-size:36px;
    margin-top:20px;
}

.auth-subtitle{
    text-align:center;
    color:#94A3B8;
    margin-bottom:30px;
}

.auth-card input{
    width:100%;
    height:58px;
    background:#111827;
    border:1px solid rgba(255,255,255,.08);
    border-radius:12px;
    color:#fff;
    padding:0 18px;
    margin-bottom:18px;
}

.auth-card input:focus{
    outline:none;
    border-color:#7C5CFF;
}

.auth-btn{
    width:100%;
    height:58px;
    border:none;
    border-radius:12px;
    background:linear-gradient(
        135deg,
        #7C5CFF,
        #5B3DF0
    );
    color:#fff;
    font-size:17px;
    font-weight:600;
    cursor:pointer;
}

.auth-btn:hover{
    opacity:.95;
}

.auth-footer{
    text-align:center;
    margin-top:25px;
    color:#94A3B8;
}

.auth-footer a{
    color:#7C5CFF;
    text-decoration:none;
}



.brand{
    display:flex;
    align-items:center;
    gap:12px;
}

.brand-logo{
    width:45px;
    height:45px;
    border-radius:12px;
    background:linear-gradient(135deg,#7C5CFF,#5B3DF0);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
}

.brand-text{
    font-size:22px;
    font-weight:700;
    color:#fff;
}

/* ==========================
   SIGNUP & LOGIN FORM
========================== */

.aiag-auth-wrap{
    width:100%;
    max-width:520px;
    margin:80px auto;
    padding:40px;
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:24px;
    backdrop-filter:blur(15px);
    -webkit-backdrop-filter:blur(15px);
    box-shadow:0 20px 60px rgba(0,0,0,0.45);
    position:relative;
    overflow:hidden;
}

.aiag-auth-wrap::before{
    content:'';
    position:absolute;
    top:-100px;
    right:-100px;
    width:220px;
    height:220px;
    background:rgba(124,92,255,0.15);
    border-radius:50%;
    filter:blur(50px);
}

.aiag-auth-wrap::after{
    content:'';
    position:absolute;
    bottom:-120px;
    left:-120px;
    width:240px;
    height:240px;
    background:rgba(91,61,240,0.15);
    border-radius:50%;
    filter:blur(60px);
}

.aiag-auth-wrap h2{
    text-align:center;
    color:#fff;
    font-size:42px;
    font-weight:700;
    margin-bottom:30px;
    position:relative;
    z-index:2;
}

.aiag-auth-wrap form{
    position:relative;
    z-index:2;
}

.aiag-auth-wrap input{
    width:100%;
    height:58px;
    border:none;
    outline:none;
    border-radius:14px;
    padding:0 18px;
    background:#111827;
    border:1px solid rgba(255,255,255,0.08);
    color:#fff;
    font-size:16px;
    transition:all .3s ease;
}

.aiag-auth-wrap input::placeholder{
    color:#94A3B8;
}

.aiag-auth-wrap input:focus{
    border-color:#7C5CFF;
    box-shadow:0 0 0 4px rgba(124,92,255,0.15);
}

.aiag-auth-wrap button{
    width:100%;
    height:58px;
    border:none;
    border-radius:14px;
    background:linear-gradient(135deg,#7C5CFF,#5B3DF0);
    color:#fff;
    font-size:17px;
    font-weight:600;
    cursor:pointer;
    transition:all .3s ease;
}

.aiag-auth-wrap button:hover{
    transform:translateY(-2px);
    box-shadow:0 15px 35px rgba(124,92,255,0.35);
}

.aiag-auth-wrap button:active{
    transform:translateY(0);
}

/* Header */

.header{
    display:flex;
    align-items:center;
    gap:15px;
    padding:30px 60px;
}

.logo{
    width:65px;
    height:65px;
    border-radius:18px;
    background:linear-gradient(135deg,#7C5CFF,#5B3DF0);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
    color:#fff;
}

.header h2{
    color:#fff;
    font-size:26px;
    font-weight:700;
}

/* Mobile */

@media(max-width:768px){

    .header{
        padding:20px;
    }

    .aiag-auth-wrap{
        margin:40px 15px;
        padding:25px;
    }

    .aiag-auth-wrap h2{
        font-size:32px;
    }

}