/* === Reset & Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
                 Ubuntu, Cantarell, sans-serif;
    background: #121212;
    color: #e0e0e0;
    -webkit-tap-highlight-color: transparent;
}

/* === Landing Page === */
.landing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px 16px;
    gap: 28px;
}

/* Logo block */
.landing__logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.landing__logo-icon {
    width: 64px;
    height: 64px;
    color: #4fc3f7;
}

.landing__title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
}

.landing__subtitle {
    font-size: 14px;
    color: #9e9e9e;
}

/* === Auth Status Card === */
.auth-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 32px;
    border-radius: 16px;
    background: #1e1e1e;
    border: 1px solid #333;
    min-width: 280px;
    transition: border-color .3s, background .3s;
}

.auth-status--logged-in {
    border-color: #43a047;
    background: #1b2e1b;
}

.auth-status__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: color .3s;
}

.auth-status--logged-in .auth-status__icon {
    color: #4fc3f7;
}

.auth-status__text {
    font-size: 14px;
    color: #9e9e9e;
    text-align: center;
}

.auth-status--logged-in .auth-status__text {
    color: #81c784;
}

.auth-status__user {
    font-size: 13px;
    color: #bbb;
    font-weight: 500;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
    -webkit-user-select: none;
    user-select: none;
    text-decoration: none;
}

.btn:active {
    transform: scale(.96);
}

.btn__icon {
    width: 22px;
    height: 22px;
}

/* OneDrive branded button */
.btn--onedrive {
    background: #0078d4;
    color: #fff;
}

.btn--onedrive:hover {
    background: #106ebe;
}

.btn--onedrive.btn--logout {
    background: #ef5350;
}

.btn--onedrive.btn--logout:hover {
    background: #d32f2f;
}

/* Primary button (go to photo) */
.btn--primary {
    background: #4fc3f7;
    color: #000;
}

.btn--primary:hover {
    background: #39b0e6;
}

.btn--go {
    font-size: 17px;
    padding: 16px 36px;
}

/* === Responsive === */
@media (max-width: 480px) {
    .landing {
        padding: 20px 12px;
        gap: 24px;
    }

    .landing__logo-icon {
        width: 52px;
        height: 52px;
    }

    .landing__title {
        font-size: 24px;
    }

    .auth-status {
        min-width: auto;
        width: 100%;
        padding: 16px 20px;
    }

    .btn--go {
        width: 100%;
    }
}
