:root {
    --bg-color: #111111;
    --sidebar-bg: #1a1a1a;
    --text-color: #c9c9c9;
    --soft-green: #5ebd70;
    --border-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    min-height: 100vh;
    overflow: hidden;
}

#sidebar {
    position: fixed;
    left: -320px;
    top: 0;
    width: 320px;
    height: 100%;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 30px;
}

#sidebar.open {
    left: 0; 
}

#toggle-btn {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 80px;
    background-color: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    border-left: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--soft-green);
    transition: background-color 0.3s;
}

#toggle-btn:hover {
    background-color: #222;
}

.arrow-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.4s ease;
}

#sidebar.open .arrow-icon {
    transform: rotate(180deg);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-btn {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--soft-green);
    padding: 15px;
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.menu-btn:hover {
    background-color: rgba(94, 189, 112, 0.1);
    color: #fff;
}

#main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    padding: 20px;
}

.text-container {
    max-width: 900px;
    text-align: center;
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

.text-container.fade-out {
    opacity: 0;
}

h1 {
    color: var(--soft-green);
    margin-bottom: 30px;
    font-size: 2.2em;
    font-weight: 600;
}

p {
    font-size: 1.05em;
    line-height: 1.8;
    margin-bottom: 25px;
}

.auth-form {
    max-width: 500px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-bottom: 25px;
}

.input-group label {
    font-size: 0.95em;
    margin-bottom: 8px;
    color: var(--text-color);
}

.input-group input {
    background-color: #1a1a1a;
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    border-radius: 8px;
    color: #fff;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.input-group input::placeholder {
    color: #555;
}

.input-group input:focus {
    border-color: var(--soft-green);
    box-shadow: 0 0 10px rgba(94, 189, 112, 0.2);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

.primary-btn, .secondary-btn {
    flex: 1;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.primary-btn {
    background-color: var(--soft-green);
    color: #111;
    border: none;
}

.primary-btn:hover {
    background-color: #4ca15a;
    box-shadow: 0 0 15px rgba(94, 189, 112, 0.4);
}

.secondary-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.secondary-btn:hover {
    background-color: #1a1a1a;
    color: #fff;
}

.code-inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.code-box {
    width: 55px;
    height: 65px;
    background-color: #1a1a1a;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--soft-green);
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
    border-bottom: 3px solid #333; 
}

.code-box:focus {
    border-color: #444;
    border-bottom: 3px solid var(--soft-green);
    box-shadow: 0 10px 15px -5px rgba(94, 189, 112, 0.15);
    transform: translateY(-2px);
}

.social-icons {
    position: absolute;
    bottom: 40px;
    display: flex;
    gap: 20px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: #888;
    transition: fill 0.3s ease;
}

.social-link:hover {
    border-color: var(--soft-green);
    background-color: rgba(94, 189, 112, 0.05);
}

.social-link:hover svg {
    fill: var(--soft-green);
}

.code-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 35px;
}

.toast-notification {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--sidebar-bg);
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-size: 1em;
    font-weight: 500;
    z-index: 1000;
    transition: top 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

.toast-notification::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: var(--soft-green);
    width: 0%;
    transition: width 0.3s linear;
}

.toast-notification.show {
    top: 30px;
}

.toast-notification.active-timer::after {
    width: 100%;
    transition: width 5s linear; 
}