* {
    box-sizing: border-box;
}

:root {
    --tol-deep: #050b08;
    --tol-panel: rgba(13, 24, 18, 0.94);
    --tol-panel-2: rgba(20, 34, 25, 0.94);
    --tol-green: #68b36b;
    --tol-green-bright: #8fd694;
    --tol-green-dark: #244a2c;
    --tol-gold: #c7a24b;
    --tol-gold-bright: #e5c56b;
    --tol-gold-dark: #70591f;
    --tol-text: #e8e3d7;
    --tol-muted: #b8b2a5;
    --tol-danger: #8d2f2f;
    --tol-success: #245f34;
}

body {
    margin: 0;
    font-family: Cinzel, "Segoe UI", Arial, sans-serif;
    color: var(--tol-text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

    /* Tree of Life guild background */
    background-color: var(--tol-deep);
    background-image:
        linear-gradient(rgba(2, 8, 5, .35), rgba(2, 8, 5, .70)),
        radial-gradient(circle at center, rgba(67, 124, 70, .12), transparent 58%),
        url('../images/bkg/tree_bkg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.page {
    width: 100%;
}

.cinzel-font {
    font-family: "Cinzel", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

/* Main account registration panel */
.register-box {
    width: min(450px, calc(100% - 32px));
    margin: auto;
    padding: 36px;
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(180deg, rgba(24, 39, 29, .97), rgba(9, 18, 13, .97));
    border: 1px solid rgba(199, 162, 75, .70);
    border-radius: 8px;

    box-shadow:
        0 18px 55px rgba(0, 0, 0, .75),
        0 0 24px rgba(74, 148, 79, .13),
        inset 0 0 28px rgba(0, 0, 0, .38);
}

/* Thin fantasy-style inner frame */
.register-box::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(104, 179, 107, .18);
    border-radius: 5px;
    pointer-events: none;
}

/* Gold ornament line */
.register-box::after {
    content: "";
    position: absolute;
    top: 0;
    left: 18%;
    right: 18%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--tol-gold),
        var(--tol-gold-bright),
        var(--tol-gold),
        transparent
    );
    box-shadow: 0 0 10px rgba(229, 197, 107, .35);
}

h1 {
    position: relative;
    text-align: center;
    color: var(--tol-green-bright);
    margin: 0 0 6px;
    letter-spacing: 1.5px;
    text-shadow:
        0 1px 0 #000,
        0 0 12px rgba(104, 179, 107, .32);
}

h2 {
    position: relative;
    text-align: center;
    color: var(--tol-muted);
    font-weight: normal;
    font-size: 15px;
    margin: 0 0 26px;
    letter-spacing: .5px;
}

label {
    position: relative;
    display: block;
    margin-top: 18px;
    margin-bottom: 7px;
    color: #d8d1bf;
    font-size: 14px;
    letter-spacing: .3px;
}

input {
    position: relative;
    width: 100%;
    padding: 12px 13px;
    border-radius: 4px;
    border: 1px solid #405347;
    background: rgba(5, 13, 8, .86);
    color: #f5f0e5;
    font-size: 15px;
    font-family: "Segoe UI", Arial, sans-serif;

    box-shadow:
        inset 0 1px 7px rgba(0, 0, 0, .65),
        0 0 0 rgba(104, 179, 107, 0);

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

input:hover {
    border-color: #58705f;
}

input:focus {
    outline: none;
    border-color: var(--tol-green);
    background: rgba(8, 18, 11, .96);
    box-shadow:
        inset 0 1px 7px rgba(0, 0, 0, .60),
        0 0 0 2px rgba(104, 179, 107, .13),
        0 0 12px rgba(104, 179, 107, .16);
}

button {
    position: relative;
    font-family: Cinzel, serif;
    margin-top: 30px;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .7px;

    border: 1px solid #7e6628;
    border-radius: 4px;
    cursor: pointer;

    background:
        linear-gradient(180deg, #3d7144 0%, #295333 48%, #1d3b25 100%);
    color: #f5efdf;

    text-shadow: 0 1px 2px #000;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .10),
        0 5px 14px rgba(0, 0, 0, .35),
        0 0 10px rgba(104, 179, 107, .10);

    transition:
        transform .15s ease,
        border-color .2s ease,
        color .2s ease,
        box-shadow .2s ease,
        filter .2s ease;
}

button:hover {
    color: #fff2bf;
    border-color: var(--tol-gold-bright);
    filter: brightness(1.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .12),
        0 7px 18px rgba(0, 0, 0, .42),
        0 0 18px rgba(199, 162, 75, .20);
    transform: translateY(-1px);
}

button:active {
    transform: translateY(1px);
}

.error-box {
    position: relative;
    background: rgba(85, 20, 20, .88);
    border: 1px solid #b54c43;
    color: #ffd9d4;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, .30);
}

.success-box {
    position: relative;
    background: rgba(24, 77, 37, .90);
    border: 1px solid #62a86a;
    color: #e2ffe5;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, .30);
}

header {
    background:
        linear-gradient(180deg, rgba(17, 31, 22, .98), rgba(9, 17, 12, .98));
    padding: 20px;
    border-bottom: 2px solid var(--tol-gold);
    box-shadow: 0 5px 20px rgba(0, 0, 0, .45);
}

.container {
    width: min(1100px, calc(100% - 32px));
    margin: auto;
    padding: 30px;
}

.card {
    background:
        linear-gradient(180deg, rgba(20, 35, 25, .96), rgba(11, 22, 15, .96));
    border: 1px solid rgba(199, 162, 75, .42);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow:
        0 8px 22px rgba(0, 0, 0, .35),
        inset 0 0 18px rgba(0, 0, 0, .18);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(6, 14, 9, .52);
}

th {
    background: #1f3926;
    color: var(--tol-gold-bright);
    border-bottom: 1px solid rgba(199, 162, 75, .55);
}

td,
th {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .045);
}

tr:nth-child(even) {
    background: rgba(43, 76, 50, .22);
}

tr:hover {
    background: rgba(104, 179, 107, .10);
}

/* Links */
a:link {
    color: var(--tol-gold-bright);
}

a:visited {
    color: #d1c8aa;
}

a:hover {
    color: var(--tol-green-bright);
    text-shadow: 0 0 8px rgba(104, 179, 107, .25);
}

a:active {
    color: #ffffff;
}

/* Improve presentation on phones */
@media (max-width: 600px) {
    body {
        align-items: flex-start;
        padding: 24px 0;
        background-attachment: scroll;
    }

    .register-box {
        padding: 28px 24px;
    }

    .container {
        padding: 18px;
    }
}
