:root {
    --parchment-bg: #f4e4d0;
    --ancient-text: #4a3f35;
    --moss-green: #5d6d4e;
    --mystical-gold: #c1a257;
    --shadow-tone: rgba(74, 63, 53, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--parchment-bg);
    font-family: 'Cormorant', serif;
    color: var(--ancient-text);
    overflow: hidden;
}

.mystical-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

.magical-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(93, 109, 78, 0.1), 
        rgba(193, 162, 87, 0.05)
    );
    z-index: -1;
}

.magical-form-wrapper {
    background: rgba(244, 228, 208, 0.8);
    border-radius: 15px;
    padding: 40px;
    width: 400px;
    box-shadow: 
        0 10px 30px var(--shadow-tone),
        inset 0 0 20px rgba(193, 162, 87, 0.1);
    position: relative;
    overflow: hidden;
}

.rune-border {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(
        45deg, 
        var(--mystical-gold), 
        var(--moss-green)
    );
    z-index: -1;
    filter: blur(5px);
    opacity: 0.3;
}

.ancient-access-form h1 {
    font-family: 'Cinzel', serif;
    text-align: center;
    color: var(--ancient-text);
    letter-spacing: 3px;
    margin-bottom: 30px;
}

.mystical-input-group input {
    width: 100%;
    padding: 12px 15px;
    margin: 15px 0;
    background: rgba(244, 228, 208, 0.5);
    border: 1px solid var(--moss-green);
    border-radius: 5px;
    color: var(--ancient-text);
    font-family: 'Cormorant', serif;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.mystical-input-group input:focus {
    outline: none;
    border-color: var(--mystical-gold);
    box-shadow: 0 0 10px rgba(193, 162, 87, 0.3);
}

.password-container {
    position: relative;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.toggle-password:hover {
    opacity: 1;
}

.toggle-password .eye-icon {
    width: 20px;
    height: 20px;
    stroke: var(--ancient-text);
}

.password-container input {
    padding-right: 40px;
}

.mystical-enter-btn {
    width: 100%;
    padding: 15px;
    background: var(--moss-green);
    color: var(--parchment-bg);
    border: none;
    border-radius: 5px;
    font-family: 'Cinzel', serif;
    letter-spacing: 3px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mystical-enter-btn:hover {
    background: var(--mystical-gold);
}

.mystic-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.mystic-link {
    color: var(--ancient-text);
    text-decoration: none;
    font-size: 0.9em;
    letter-spacing: 1px;
    position: relative;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.mystic-link:hover {
    opacity: 1;
}

.mystic-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--ancient-text);
    transition: width 0.3s ease;
}

.mystic-link:hover::after {
    width: 100%;
}