/* ===== Base Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: rgb(22, 22, 28);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Logo & Title ===== */
#logo {
    position: absolute;
    top: 55px;
    border-radius: 100px;
    border: 2px solid white;
    left: 20px;
    width: 70px;
    height: 70px;
}

#title {
    position: absolute;
    top: 60px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ===== Auth Form ===== */
.form-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 12px;
}

.form-section input {
    padding: 10px 20px;
    font-size: 15px;
    border: 1px solid rgb(50, 50, 65);
    border-radius: 8px;
    background-color: rgb(30, 30, 40);
    color: white;
    font-weight: 600;
    text-align: center;
    width: 260px;
    outline: none;
    transition: border-color 0.2s;
}

.form-section input:focus {
    border-color: rgb(0, 140, 255);
}

.form-section input::placeholder {
    color: rgb(100, 100, 120);
}

.form-section button {
    transform: scale(1.2);
    background-color: rgb(30, 30, 40);
    color: white;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgb(60, 60, 80);
    border-radius: 8px;
    padding: 10px 40px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 200px;
}

.form-section button:hover {
    transform: scale(1.25);
    background-color: rgb(45, 45, 60);
    border-color: rgb(80, 80, 100);
}

.form-section button:active {
    transform: scale(1.3);
    background-color: rgb(55, 55, 70);
}

#warning {
    color: rgb(255, 80, 80);
    font-weight: 600;
    font-size: 13px;
    margin: 0;
    min-height: 18px;
}

/* ===== Main Buttons ===== */
#btns {
    position: absolute;
    top: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 340px;
}

#btns button {
    width: 100%;
    background-color: rgb(30, 30, 40);
    color: white;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid rgb(60, 60, 80);
    border-radius: 8px;
    padding: 14px 24px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

#btns button:hover {
    transform: scale(1.03);
    background-color: rgb(45, 45, 60);
    border-color: rgb(80, 80, 100);
}

#btns button:active {
    transform: scale(1.06);
    background-color: rgb(55, 55, 70);
}

#freeCourse {
    background-color: rgb(15, 60, 15);
    border-color: rgb(30, 90, 30);
}

#freeCourse:hover {
    background-color: rgb(20, 75, 20);
    border-color: rgb(40, 110, 40);
}

/* ===== Header ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: rgb(12, 12, 15);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 50;
    border-bottom: 1px solid rgb(40, 40, 50);
}

#settingsBtn {
    background: none;
    border: none;
    color: rgb(180, 180, 200);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    padding: 6px 12px;
    border-radius: 6px;
}

#settingsBtn:hover {
    transform: scale(1.05);
    color: white;
    background-color: rgb(40, 40, 50);
}

#settingsBtn:active {
    transform: scale(1.1);
}

/* ===== Settings Panel ===== */
#settingsPanel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 100;
}

#settingsPanel h2 {
    color: white;
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

#settingsPanel button {
    transform: scale(1.2);
    background-color: rgb(30, 30, 40);
    color: white;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgb(60, 60, 80);
    border-radius: 8px;
    padding: 10px 30px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 200px;
}

#settingsPanel button:hover {
    transform: scale(1.25);
    background-color: rgb(45, 45, 60);
    border-color: rgb(80, 80, 100);
}

#settingsPanel button:active {
    transform: scale(1.3);
    background-color: rgb(55, 55, 70);
}

#settingsWarning {
    color: rgb(255, 80, 80);
    font-weight: 600;
    font-size: 13px;
    margin: 0;
    min-height: 18px;
}

/* ===== Free Course Panel ===== */
#freeCoursePanel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 100;
}

#freeCoursePanel h2 {
    color: white;
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

#freeCoursePanel p {
    color: rgb(200, 200, 215);
    margin: 0;
    font-size: 16px;
}

#freeCoursePanel .schedule-text {
    font-size: 18px;
    font-weight: 700;
    color: rgb(80, 180, 255);
    margin-top: 10px;
}

#freeCoursePanel .email-label {
    margin-top: 15px;
}

#freeCoursePanel .email-link {
    font-size: 18px;
    font-weight: 700;
    color: rgb(80, 180, 255);
    text-decoration: none;
    margin-top: 5px;
    transition: color 0.2s;
}

#freeCoursePanel .email-link:hover {
    color: rgb(120, 200, 255);
}

#freeCoursePanel button {
    transform: scale(1.2);
    background-color: rgb(30, 30, 40);
    color: white;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgb(60, 60, 80);
    border-radius: 8px;
    padding: 10px 30px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 200px;
    margin-top: 20px;
}

#freeCoursePanel button:hover {
    transform: scale(1.25);
    background-color: rgb(45, 45, 60);
    border-color: rgb(80, 80, 100);
}

#freeCoursePanel button:active {
    transform: scale(1.3);
    background-color: rgb(55, 55, 70);
}