﻿/* ================= GLOBAL PAGE ================= */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Fullscreen wrapper */
.startpage {
    position: fixed;
    inset: 0;
    overflow: hidden;
}

/* ================= BACKGROUND ================= */
.bg-image {
    position: absolute;
    inset: 0;
    background: url("/images/StartPage.png") no-repeat left center;
    background-size: cover;
    z-index: 1;
}

/* ================= CARD ================= */
.card {
    position: absolute;
    right: 2%;
    top: 55%;
    transform: translateY(-50%);
    width: 500px;
    height: 510px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #dcdcdc;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    padding: 34px;
    box-sizing: border-box;
    z-index: 2;
    display: flex;
    flex-direction: column;
    overflow: visible; /* allows floating logo */
}

/* ================= FLOATING LOGO ================= */
.brand-container {
    position: absolute;
    top: -75px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 220px;
    z-index: 5;
}

.brand-logo {
    width: 220px;
    height: auto;
    display: block;
}

/* ================= CONTENT ================= */
.card-content {
    flex: 1;
    padding-top: 70px; /* space for floating logo */
    overflow: hidden;
}

/* ================= TEXT ================= */
.title {
    font-size: 30px;
    font-weight: 900;
    text-align: center;
    margin: 0 0 12px;
}

.desc {
    font-size: 13px;
    line-height: 1.55;
    color: #555;
    text-align: center;
    margin-bottom: 16px;
}

/* ================= BUTTONS (shared) ================= */
.actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.btn {
    width: 240px;
    padding: 13px 18px;
    background: #4a75a1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

    .btn:hover {
        background: #3b5d81;
    }

.arrow {
    font-size: 18px;
}

/* ================= LOGIN PAGE ONLY ================= */

/* Login form container */
.login-form {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Labels */
.form-label {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    margin-top: 6px;
}

/* Input fields */
.form-input {
    height: 38px;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 13px;
    outline: none;
}

    .form-input:focus {
        border-color: #4a75a1;
        box-shadow: 0 0 0 3px rgba(74,117,161,0.12);
    }

/* Login button + forgot password */
.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.btn-login {
    width: 170px;
}

/* Forgot password link */
.forgot-link {
    font-size: 12px;
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

    .forgot-link:hover {
        color: #4a75a1;
        border-bottom-color: #4a75a1;
    }

/* OR separator */
.or-line {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 0;
    color: #999;
    font-size: 12px;
}

/* Signup helper text */
.signup-text {
    font-size: 12px;
    color: #777;
    text-align: center;
    margin-bottom: 6px;
}

/* Error box (login failure) */
.form-error {
    background: #ffecec;
    border: 1px solid #ffb7b7;
    color: #8a1f1f;
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 6px;
}

/* Validation errors */
.field-error {
    color: #c0392b;
    font-size: 12px;
}

/* ================= BACK ARROW ================= */
.back-btn {
    position: absolute;
    left: 16px;
    bottom: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid #cfcfcf;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-decoration: none;
    color: #333;
    background: #fff;
    z-index: 10;
    transition: background 0.2s ease, border-color 0.2s ease;
}

    .back-btn:hover {
        background: #f3f3f3;
        border-color: #bdbdbd;
    }

/* ================= FOOTER LINKS (StartPage only) ================= */
/* ✅ FIXED: 3-column footer layout, consistent sizes, no wrapping */
.bottom-links {
    position: absolute;
    bottom: 18px;
    /* respect card padding (34px) */
    left: 34px;
    right: 34px;
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap; /* keep footer one line */
}

.bottom-link {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: underline;
}

    .bottom-link:hover {
        color: #2f3e4e;
    }

/* center takes remaining space and truly centers the copyright */
.footer-center {
    flex: 1;
    text-align: center;
    color: #6c757d;
    font-weight: 500;
    white-space: nowrap;
    font-size: 12px; /* same as links */
}

/* align left / right */
.bottom-links .bottom-link:first-child {
    text-align: left;
}

.bottom-links .bottom-link:last-child {
    text-align: right;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .card {
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        width: min(92vw, 520px);
    }
}
