/* =========================================================
   EDITION CARDS
========================================================= */

.edition-grid{
    position:relative;
    z-index:1;

    display:grid;
    grid-template-columns:
        1fr 1fr;

    gap:10px;

    margin-bottom:16px;
}

.edition-card{
    position:relative;

    min-height:88px;

    display:grid;
    grid-template-columns:
        46px 1fr;
    grid-template-rows:
        auto auto;

    column-gap:12px;
    align-items:center;

    padding:13px 15px;

    border:
        1px solid
        rgba(151,165,194,.14);

    border-radius:15px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.028),
            rgba(255,255,255,.012)
        );

    cursor:pointer;

    transition:
        transform .16s ease,
        border-color .16s ease,
        background .16s ease,
        box-shadow .16s ease;
}

.edition-card:hover{
    transform:
        translateY(-1px);

    border-color:
        rgba(
            122,
            123,
            255,
            .38
        );
}

.edition-card input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.edition-card:has(input:checked){
    border-color:
        rgba(
            122,
            98,
            255,
            .86
        );

    background:
        linear-gradient(
            135deg,
            rgba(93,66,255,.17),
            rgba(53,198,255,.055)
        );

    box-shadow:
        inset 0 1px 0
            rgba(255,255,255,.06),

        0 0 0 1px
            rgba(108,82,255,.08),

        0 12px 30px
            rgba(80,57,220,.10);
}

.edition-card:has(input:checked)::after{
    content:"";

    position:absolute;

    top:12px;
    right:12px;

    width:7px;
    height:7px;

    border-radius:50%;

    background:
        var(--as-cyan);

    box-shadow:
        0 0 12px
        rgba(95,232,255,.72);
}

.edition-icon{
    grid-row:
        1 / span 2;

    width:44px;
    height:44px;

    display:grid;
    place-items:center;

    border:
        1px solid
        rgba(119,135,192,.14);

    border-radius:12px;

    background:
        rgba(4,8,16,.24);
}

.edition-icon img{
    width:27px;
    height:27px;
}

.edition-card strong{
    align-self:end;

    color:#f5f7ff;

    font-size:12px;
}

.edition-card small{
    align-self:start;

    color:
        rgba(
            176,
            189,
            212,
            .59
        );

    font-size:10px;
}


/* =========================================================
   FIELDS
========================================================= */

.add-server-field{
    position:relative;
    z-index:1;

    display:grid;
    gap:7px;
}

.add-server-field-title{
    display:flex;
    align-items:center;
    gap:6px;
}

.add-server-field-title img{
    width:16px;
    height:16px;
}

.add-server-field>span,
.add-server-field-title span{
    color:
        rgba(
            229,
            234,
            247,
            .84
        );

    font-size:10px;
    font-weight:850;
}

.add-server-field input,
.add-server-field textarea,
.add-server-field select{
    width:100%;
    box-sizing:border-box;

    border:
        1px solid
        rgba(154,171,204,.15);

    border-radius:12px;

    outline:none;

    background:
        rgba(3,7,14,.44);

    color:#f5f7ff;

    font:inherit;
    font-size:12px;

    box-shadow:
        inset 0 1px 0
        rgba(255,255,255,.025);

    transition:
        border-color .16s ease,
        background .16s ease,
        box-shadow .16s ease;
}

.add-server-field input,
.add-server-field select{
    min-height:44px;
    padding:0 13px;
}

.add-server-field textarea{
    min-height:132px;

    padding:12px 13px;

    resize:vertical;
}

.add-server-field input::placeholder,
.add-server-field textarea::placeholder{
    color:
        rgba(
            157,
            173,
            200,
            .47
        );
}

.add-server-field input:focus,
.add-server-field textarea:focus,
.add-server-field select:focus{
    border-color:
        rgba(
            83,
            217,
            255,
            .48
        );

    background:
        rgba(8,14,25,.60);

    box-shadow:
        0 0 0 3px
            rgba(64,188,255,.07),

        inset 0 1px 0
            rgba(255,255,255,.035);
}

.add-server-field small{
    color:
        rgba(
            165,
            179,
            204,
            .57
        );

    font-size:9px;
}

.add-server-field .field-error{
    color:#ff8aa0;
}


/* =========================================================
   PRIMARY ACTION
========================================================= */

.add-server-check,
.add-server-primary{
    position:relative;
    z-index:1;

    width:100%;
    min-height:46px;

    margin-top:12px;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;

    border:
        1px solid
        rgba(133,111,255,.82);

    border-radius:12px;

    background:
        linear-gradient(
            110deg,
            #5c47f4,
            #7257ff 52%,
            #7951ef
        );

    color:#fff;

    font:inherit;
    font-size:11px;
    font-weight:900;

    text-decoration:none;

    cursor:pointer;

    box-shadow:
        inset 0 1px 0
            rgba(255,255,255,.16),

        0 11px 30px
            rgba(83,57,224,.21);

    transition:
        transform .16s ease,
        filter .16s ease,
        box-shadow .16s ease;
}

.add-server-check:hover,
.add-server-primary:hover{
    transform:
        translateY(-1px);

    filter:
        brightness(1.08);

    box-shadow:
        inset 0 1px 0
            rgba(255,255,255,.18),

        0 14px 35px
            rgba(83,57,224,.26);
}

.add-server-check[disabled]{
    opacity:.58;
    cursor:wait;
    transform:none;
}

.check-button-icon{
    width:19px;
    height:19px;

    filter:
        drop-shadow(
            0 0 8px
            rgba(113,235,255,.46)
        );
}




/* =========================================================
   ADD SERVER ENTRY — TYPOGRAPHY
========================================================= */

.add-server-entry-card .edition-card strong{
    font-size:14px;
    line-height:1.15;
    letter-spacing:-.015em;
}

.add-server-entry-card .edition-card small{
    font-size:11px;
    line-height:1.35;
}

.add-server-entry-card .add-server-field-title span{
    font-size:11px;
    line-height:1.3;
}

.add-server-entry-card .add-server-field input{
    font-size:13px;
    font-weight:650;
}

.add-server-entry-card .add-server-check{
    font-size:12px;
    letter-spacing:-.01em;
}

.add-server-entry-card .edition-icon{
    width:46px;
    height:46px;
}

.add-server-entry-card .edition-icon img{
    width:30px;
    height:30px;
}

.add-server-entry-card .add-server-field-title img{
    width:17px;
    height:17px;
}
