/*==================================================
            GOOGLE FONT
==================================================*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/*==================================================
            THEME TOKENS

            Light is the default (no class on <html>),
            matching the rest of the DrillPro app. Adding
            .dark to <html> (same mechanism the other
            pages use, toggled via the same
            "drillpro_theme" localStorage key) switches to
            the original red/black design.
==================================================*/

:root{

    --reg-body-bg:#F7F8FA;
    --reg-body-text:#14171A;

    --reg-bg-glow-1:rgba(255,60,60,.10);
    --reg-bg-glow-2:rgba(180,0,0,.06);
    --reg-bg-base:linear-gradient(135deg,#FFFFFF,#F7F8FA,#F1F3F6);
    --reg-texture-opacity:0;

    --reg-card-bg:rgba(255,255,255,.98);
    --reg-card-border:rgba(20,23,26,.08);
    --reg-card-shadow:0 0 40px rgba(224,52,47,.06),0 25px 70px rgba(20,23,26,.10);

    --reg-header-muted:#6B7280;

    --reg-progress-track:#E7E9ED;
    --reg-progress-border:rgba(20,23,26,.06);

    --reg-heading-text:#14171A;

    --reg-input-bg:#F7F8FA;
    --reg-input-border:#E2E5EA;
    --reg-input-text:#14171A;
    --reg-input-placeholder:#9CA3AF;
    --reg-input-focus-bg:#FFFFFF;
    --reg-input-focus-ring:rgba(224,52,47,.10);
    --reg-input-focus-glow:rgba(224,52,47,.10);

    --reg-readonly-bg:#EFF1F4;
    --reg-readonly-text:#6B7280;

    --reg-label-text:#4B5563;

    --reg-accent:#E0342F;
    --reg-accent-dark:#A30000;
    --reg-accent-soft:rgba(224,52,47,.10);

    --reg-benefit-bg:#F1F3F6;
    --reg-benefit-border:rgba(20,23,26,.06);
    --reg-benefit-text:#374151;

    --reg-prev-bg:#EEF0F3;
    --reg-prev-text:#374151;
    --reg-prev-border:#D8DBE0;

    --reg-review-bg:#F7F8FA;
    --reg-review-border:rgba(20,23,26,.08);
    --reg-review-label:#6B7280;
    --reg-review-value:#14171A;

    --reg-success-bg:#F7F8FA;
    --reg-success-border:rgba(20,23,26,.06);

    --reg-scrollbar-track:#EDEDED;

    --reg-toggle-bg:#FFFFFF;
    --reg-toggle-border:rgba(20,23,26,.10);
    --reg-toggle-text:#374151;

}

:root.dark{

    --reg-body-bg:#050505;
    --reg-body-text:#ffffff;

    --reg-bg-glow-1:rgba(255,40,40,.18);
    --reg-bg-glow-2:rgba(180,0,0,.18);
    --reg-bg-base:linear-gradient(135deg,#040404,#0b0b0b,#111111);
    --reg-texture-opacity:.06;

    --reg-card-bg:rgba(15,15,15,.96);
    --reg-card-border:rgba(255,255,255,.06);
    --reg-card-shadow:0 0 50px rgba(255,0,0,.10),0 25px 80px rgba(0,0,0,.55);

    --reg-header-muted:#999999;

    --reg-progress-track:#1d1d1d;
    --reg-progress-border:rgba(255,255,255,.04);

    --reg-heading-text:#ffffff;

    --reg-input-bg:#111111;
    --reg-input-border:#2f2f2f;
    --reg-input-text:#ffffff;
    --reg-input-placeholder:#6f6f6f;
    --reg-input-focus-bg:#171717;
    --reg-input-focus-ring:rgba(255,50,50,.10);
    --reg-input-focus-glow:rgba(255,0,0,.15);

    --reg-readonly-bg:#0c0c0c;
    --reg-readonly-text:#8f8f8f;

    --reg-label-text:#d5d5d5;

    --reg-accent:#ff3030;
    --reg-accent-dark:#900000;
    --reg-accent-soft:rgba(255,48,48,.12);

    --reg-benefit-bg:#111111;
    --reg-benefit-border:rgba(255,255,255,.05);
    --reg-benefit-text:#dddddd;

    --reg-prev-bg:#1a1a1a;
    --reg-prev-text:#dddddd;
    --reg-prev-border:#343434;

    --reg-review-bg:#111111;
    --reg-review-border:rgba(255,255,255,.06);
    --reg-review-label:#8f8f8f;
    --reg-review-value:#ffffff;

    --reg-success-bg:#101010;
    --reg-success-border:rgba(255,255,255,.05);

    --reg-scrollbar-track:#080808;

    --reg-toggle-bg:#111111;
    --reg-toggle-border:rgba(255,255,255,.08);
    --reg-toggle-text:#dddddd;

}

/*==================================================
            RESET
==================================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Inter',sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{

    background:var(--reg-body-bg);
    color:var(--reg-body-text);
    overflow-x:hidden;
    transition:background .35s ease,color .35s ease;

}

/*==================================================
            BACKGROUND
==================================================*/

body::before{

    content:"";
    position:fixed;
    inset:0;

    background:
    radial-gradient(circle at top left,
    var(--reg-bg-glow-1),
    transparent 35%),

    radial-gradient(circle at bottom right,
    var(--reg-bg-glow-2),
    transparent 35%),

    var(--reg-bg-base);

    z-index:-3;
    transition:background .35s ease;

}

body::after{

    content:"";
    position:fixed;
    inset:0;

    background:
    url("https://www.transparenttextures.com/patterns/carbon-fibre.png");

    opacity:var(--reg-texture-opacity);

    z-index:-2;
    transition:opacity .35s ease;

}

/*==================================================
            THEME TOGGLE
==================================================*/

.theme-toggle{

    position:fixed;

    top:24px;
    right:24px;

    z-index:50;

    width:46px;
    height:46px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    background:var(--reg-toggle-bg);
    border:1px solid var(--reg-toggle-border);
    color:var(--reg-toggle-text);

    font-size:17px;

    cursor:pointer;

    box-shadow:0 4px 16px rgba(0,0,0,.10);

    transition:.3s;

}

.theme-toggle:hover{

    transform:translateY(-2px);
    border-color:var(--reg-accent);
    color:var(--reg-accent);

}

@media(max-width:768px){

    .theme-toggle{

        top:14px;
        right:14px;

        width:40px;
        height:40px;
        font-size:15px;

    }

}

/*==================================================
            REGISTER PAGE
==================================================*/

.register-page{

    width:100%;
    min-height:100vh;

    display:flex;
    justify-content:center;
    align-items:center;

    padding:60px;

}

/*==================================================
            BRAND SECTION
==================================================*/

.register-brand{

    width:420px;

    padding:50px;

}

.register-brand img{

    width:90px;

    margin-bottom:35px;

}

.register-brand h1{

    font-size:46px;

    font-weight:800;

    line-height:1.2;

    margin-bottom:25px;

    color:var(--reg-heading-text);

}

.register-brand p{

    color:var(--reg-header-muted);

    font-size:17px;

    line-height:1.8;

    margin-bottom:40px;

}

/*==================================================
            BENEFITS
==================================================*/

.benefits{

    display:flex;

    flex-direction:column;

    gap:18px;

}

.benefits div{

    background:var(--reg-benefit-bg);

    border:1px solid var(--reg-benefit-border);

    padding:18px 22px;

    border-radius:14px;

    color:var(--reg-benefit-text);

    transition:.35s;

}

.benefits div:hover{

    transform:translateX(8px);

    border-color:var(--reg-accent);

    background:var(--reg-input-focus-bg);

}

/*==================================================
            REGISTER CARD
==================================================*/

.register-container{

    flex:1;

    display:flex;

    justify-content:center;

}

.register-card{

    width:100%;

    max-width:850px;

    background:var(--reg-card-bg);

    border:1px solid var(--reg-card-border);

    border-radius:24px;

    padding:45px;

    backdrop-filter:blur(18px);

    box-shadow:var(--reg-card-shadow);

    transition:background .35s ease,border-color .35s ease,box-shadow .35s ease;

}

/*==================================================
            HEADER
==================================================*/

.register-header{

    text-align:center;

    margin-bottom:35px;

}

.register-header .logo{

    width:70px;

    margin-bottom:20px;

}

.register-header h2{

    font-size:36px;

    font-weight:800;

    margin-bottom:10px;

    color:var(--reg-heading-text);

}

.register-header p{

    color:var(--reg-header-muted);

    font-size:15px;

}

/*==================================================
            PROGRESS BOX
==================================================*/

.progress-box{

    margin:35px 0;

}

.progress-text{

    display:flex;

    justify-content:space-between;

    align-items:center;

    font-size:14px;

    color:var(--reg-label-text);

    margin-bottom:12px;

}

.progress-bar{

    width:100%;

    height:10px;

    background:var(--reg-progress-track);

    border-radius:50px;

    overflow:hidden;

    border:1px solid var(--reg-progress-border);

}

.progress-bar span{

    display:block;

    width:12.5%;

    height:100%;

    background:linear-gradient(
    90deg,
    var(--reg-accent),
    var(--reg-accent-dark));

    transition:.45s ease;

    box-shadow:
    0 0 15px var(--reg-accent-soft);

}
/*==================================================
                FORM STEPS
==================================================*/

.form-step{

    display:none;

    animation:slideIn .45s ease;

}

.form-step.active{

    display:block;

}

.form-step h3{

    font-size:28px;

    font-weight:700;

    color:var(--reg-heading-text);

    margin-bottom:30px;

    position:relative;

    padding-left:18px;

}

.form-step h3::before{

    content:"";

    position:absolute;

    left:0;
    top:3px;

    width:5px;
    height:32px;

    border-radius:10px;

    background:linear-gradient(var(--reg-accent),var(--reg-accent-dark));

}

/*==================================================
                INPUT GRID
==================================================*/

.input-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:25px;

    margin-bottom:40px;

}

/*==================================================
                INPUT GROUP
==================================================*/

.input-group{

    display:flex;

    flex-direction:column;

}

.input-group label{

    margin-bottom:10px;

    color:var(--reg-label-text);

    font-size:14px;

    font-weight:600;

}

.required-tag{

    color:var(--reg-accent);

    font-weight:700;

}

/*==================================================
                INPUTS
==================================================*/

.input-group input,
.input-group select,
.input-group textarea{

    width:100%;

    padding:15px 18px;

    border-radius:12px;

    border:1px solid var(--reg-input-border);

    background:var(--reg-input-bg);

    color:var(--reg-input-text);

    font-size:15px;

    outline:none;

    transition:.35s;

}

.input-group textarea{

    resize:none;

    min-height:130px;

}

.input-group input::placeholder,
.input-group textarea::placeholder{

    color:var(--reg-input-placeholder);

}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus{

    border-color:var(--reg-accent);

    background:var(--reg-input-focus-bg);

    box-shadow:
    0 0 0 3px var(--reg-input-focus-ring),
    0 0 20px var(--reg-input-focus-glow);

}

/*==================================================
                READ-ONLY (synced) FIELDS
==================================================*/

.input-group input[readonly]{

    background:var(--reg-readonly-bg);

    color:var(--reg-readonly-text);

    cursor:default;

}

.input-group input[readonly]:focus{

    box-shadow:none;

    border-color:var(--reg-input-border);

}

.input-group .field-hint{

    margin-top:8px;

    font-size:12px;

    color:var(--reg-header-muted);

}

/*==================================================
                FILE INPUT
==================================================*/

input[type="file"]{

    padding:12px;

    cursor:pointer;

}

input[type="file"]::file-selector-button{

    border:none;

    background:var(--reg-accent);

    color:#ffffff;

    padding:10px 18px;

    border-radius:8px;

    cursor:pointer;

    margin-right:15px;

    transition:.3s;

}

input[type="file"]::file-selector-button:hover{

    background:var(--reg-accent-dark);

}

/*==================================================
                SELECT
==================================================*/

select{

    appearance:none;

    cursor:pointer;

}

/*==================================================
                BUTTONS
==================================================*/

.form-buttons{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:20px;

    gap:15px;

}

/*==================================================
                COMMON BUTTON
==================================================*/

.form-buttons button,
.login-btn{

    border:none;

    cursor:pointer;

    padding:15px 35px;

    border-radius:12px;

    font-size:15px;

    font-weight:700;

    transition:.35s;

    text-decoration:none;

}

.form-buttons button:disabled{

    opacity:.6;

    cursor:not-allowed;

    transform:none !important;

}

/*==================================================
                PREVIOUS BUTTON
==================================================*/

.prevBtn{

    background:var(--reg-prev-bg);

    color:var(--reg-prev-text);

    border:1px solid var(--reg-prev-border);

}

.prevBtn:hover{

    filter:brightness(1.1);

    transform:translateY(-2px);

}

/*==================================================
                NEXT BUTTON
==================================================*/

.nextBtn{

    background:linear-gradient(135deg,var(--reg-accent),var(--reg-accent-dark));

    color:#ffffff;

    margin-left:auto;

    box-shadow:0 10px 25px var(--reg-accent-soft);

}

.nextBtn:hover{

    transform:translateY(-3px);

    box-shadow:0 20px 40px var(--reg-accent-soft);

}

/*==================================================
                SUBMIT BUTTON
==================================================*/

.submitBtn{

    background:linear-gradient(135deg,var(--reg-accent),var(--reg-accent-dark));

    color:#ffffff;

    margin-left:auto;

    font-size:16px;

    padding:16px 42px;

    box-shadow:0 15px 35px var(--reg-accent-soft);

}

.submitBtn:hover{

    transform:translateY(-4px);

    box-shadow:0 25px 45px var(--reg-accent-soft);

}

/*==================================================
                INPUT VALIDATION
==================================================*/

input.error,
select.error,
textarea.error{

    border-color:#ff0000;

    box-shadow:0 0 15px rgba(255,0,0,.20);

}

input.success,
select.success,
textarea.success{

    border-color:#2ecc71;

}

/*==================================================
                SMALL TEXT
==================================================*/

small{

    color:var(--reg-header-muted);

    margin-top:6px;

    font-size:12px;

}
/*==================================================
                REVIEW PAGE
==================================================*/

.review-text{

    color:var(--reg-header-muted);
    margin-bottom:30px;
    line-height:1.7;

}

.review-box{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:18px;
    margin-bottom:35px;

}

.review-item{

    background:var(--reg-review-bg);
    border:1px solid var(--reg-review-border);
    border-radius:14px;
    padding:18px;
    transition:.35s;

}

.review-item:hover{

    border-color:var(--reg-accent);
    transform:translateY(-3px);

}

.review-item span{

    display:block;
    color:var(--reg-review-label);
    font-size:13px;
    margin-bottom:8px;

}

.review-item strong{

    color:var(--reg-review-value);
    font-size:17px;

}

/*==================================================
                TERMS
==================================================*/

.agree-box{

    margin:25px 0;

}

.agree-box label{

    display:flex;
    align-items:center;
    gap:12px;
    cursor:pointer;
    color:var(--reg-label-text);
    line-height:1.6;

}

.agree-box input{

    width:18px;
    height:18px;
    accent-color:var(--reg-accent);

}

/*==================================================
                SUCCESS PAGE
==================================================*/

.success-step{

    text-align:center;

}

.success-box{

    padding:50px 20px;

}

.success-icon{

    width:110px;
    height:110px;

    margin:auto;

    border-radius:50%;

    display:flex;
    justify-content:center;
    align-items:center;

    font-size:48px;
    font-weight:700;

    color:#ffffff;

    background:linear-gradient(135deg,#28c76f,#119b52);

    box-shadow:0 0 40px rgba(40,199,111,.35);

    margin-bottom:30px;

}

.success-box h2{

    font-size:40px;
    margin-bottom:15px;
    color:var(--reg-heading-text);

}

.success-box p{

    color:var(--reg-header-muted);
    line-height:1.8;

}

.created-id{

    margin:30px auto;

    max-width:450px;

    background:var(--reg-success-bg);

    border:1px solid var(--reg-success-border);

    border-radius:18px;

    padding:25px;

}

.created-id p{

    color:var(--reg-review-label);
    margin-bottom:10px;

}

.created-id h1{

    font-size:42px;

    color:var(--reg-accent);

    letter-spacing:3px;

    margin-bottom:8px;

}

.created-id h3{

    font-size:24px;

    color:var(--reg-heading-text);

}

.success-note{

    margin:30px 0;
    color:var(--reg-label-text);

}

.login-btn{

    display:inline-block;

    background:linear-gradient(135deg,var(--reg-accent),var(--reg-accent-dark));

    color:#ffffff;

    margin-top:20px;

    box-shadow:0 15px 35px var(--reg-accent-soft);

}

.login-btn:hover{

    transform:translateY(-3px);

    box-shadow:0 25px 45px var(--reg-accent-soft);

}

/*==================================================
                ANIMATIONS
==================================================*/

@keyframes slideIn{

    from{

        opacity:0;
        transform:translateX(40px);

    }

    to{

        opacity:1;
        transform:translateX(0);

    }

}

@keyframes fadeUp{

    from{

        opacity:0;
        transform:translateY(25px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}

.register-card{

    animation:fadeUp .6s ease;

}

/*==================================================
                SCROLLBAR
==================================================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:var(--reg-scrollbar-track);

}

::-webkit-scrollbar-thumb{

    background:var(--reg-accent);
    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:var(--reg-accent-dark);

}

/*==================================================
                RESPONSIVE
==================================================*/

@media(max-width:1200px){

.register-page{

    flex-direction:column;
    gap:40px;

}

.register-brand{

    width:100%;
    text-align:center;
    padding:20px;

}

.benefits{

    max-width:500px;
    margin:auto;

}

}

@media(max-width:768px){

.register-page{

    padding:20px;

}

.register-card{

    padding:25px;

}

.register-header h2{

    font-size:30px;

}

.register-brand h1{

    font-size:34px;

}

.input-grid{

    grid-template-columns:1fr;

}

.review-box{

    grid-template-columns:1fr;

}

.form-buttons{

    flex-direction:column;

}

.form-buttons button,
.login-btn{

    width:100%;

}

.created-id h1{

    font-size:28px;

}

}

@media(max-width:480px){

.register-header h2{

    font-size:25px;

}

.form-step h3{

    font-size:22px;

}

.progress-text{

    font-size:13px;

}

.input-group input,
.input-group select,
.input-group textarea{

    padding:13px;

}

}