body {
    min-height: 100vh;
    background:
        radial-gradient(circle at left center, rgba(255, 90, 0, 0.10), transparent 30%),
        radial-gradient(circle at right bottom, rgba(255, 90, 0, 0.16), transparent 28%),
        #ffffff;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 760px;
    min-height: 470px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #d8dde5;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 64px 70px;
}

.auth-logo  {
    height: auto;
    object-fit: contain;
    margin-bottom: 15px;
}

.login-logo {
    width: 80px;
}

.signup-logo {
    width: 70px;
}

.auth-card h1 {
    margin: 8px 0 0;
    font-size: 36px;
    font-weight: 600;
}

.auth-card h2 {
    margin: 8px 0 0;
    font-size: 30px;
    font-weight: 600;
}

.subtitle {
    font-size: 16px;
    color: #64748b;
    margin-top: 4px;
    margin-bottom: 4px;
}

.login-form {
    margin-top: 24px;
    width :55%;
}

.signup-form {
    width: 70%;
    margin-top: 28px;
}

.form-group{
    display:flex;
    flex-direction:column;
    margin-bottom:14px;
}

.form-group label {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 15px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #6b7280;
}

.form-group input[readonly] {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
    cursor: not-allowed;
}

.form-group input[readonly]:focus {
    outline: none;
    border-color: #d1d5db;
    box-shadow: none;
}

.required{
    color:#ff5a00;
}

.microsoft-btn {
    width: 55%;
    height: 60px;
    border: 1px solid #d8dde5;
    border-radius: 10px;
    background: white;
    color: #111827;
    text-decoration: none;
    font-size: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);
    white-space: nowrap;
    margin-top: 62px;
}

.microsoft-btn:hover {
    background: #f8fafc;
}

.btn-div {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 34px;
}

.primary-btn,
.secondary-btn {
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.primary-btn {
    background: #ff5a00;
    color: white;
    border: 1px solid #ff5a00;
    width: 40%;
}

.primary-btn:hover {
    background: #e65000;
    border-color: #e65000;
}

.secondary-btn{
    background: white;
    color: #ff5a00;
    border: 1px solid #ff5a00;
    width: 20%;
    text-decoration: none;
}

.secondary-btn:hover {
    background:#f5f6f7;
}

.ms-logo {
    width: 25px;
    height: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.ms-logo span:nth-child(1) { background: #f25022; }
.ms-logo span:nth-child(2) { background: #7fba00; }
.ms-logo span:nth-child(3) { background: #00a4ef; }
.ms-logo span:nth-child(4) { background: #ffb900; }

.sign-in-text {
    font-size: 18px;
    font-weight: normal;
}

.secure-text {
    margin-top: 38px;
    color: #64748b;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.secure-text .bi {
    font-size: 14px;
    line-height: 1;
}

.message-box {
    margin-top: 24px;
    width: 500px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 12px;
    border-radius: 8px;
    text-align: left;
}

.login-footer {
    margin-top: 82px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.login-footer a {
    color: #ff5a00;
    text-decoration: none;
    margin: 0 8px;
}

.debug-login-input {
    display: block;
    width: 100%;
    min-height: 48px;
    margin-bottom: 12px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-size: 16px;
}

.debug-login-input:focus-visible {
    outline: 3px solid rgba(255, 90, 0, 0.22);
    border-color: #ff5a00;
}

.debug-login-btn {
    width: 100%;
    margin-top: 0;
    font-size: 18px;
}

.microsoft-btn:focus-visible,
.login-footer a:focus-visible {
    outline: 3px solid rgba(255, 90, 0, 0.28);
    outline-offset: 3px;
}

@media (max-width: 767px) {
    html,
    body {
        width: 100%;
        min-height: 100%;
        overflow-x: hidden;
    }

    body {
        padding-bottom: 0;
        -webkit-text-size-adjust: 100%;
    }

    .auth-page {
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        justify-content: flex-start;
        padding:
            max(20px, env(safe-area-inset-top))
            max(16px, env(safe-area-inset-right))
            max(20px, env(safe-area-inset-bottom))
            max(16px, env(safe-area-inset-left));
    }

    .auth-card {
        width: 100%;
        max-width: 520px;
        min-height: 0;
        margin: auto 0;
        padding: clamp(24px, 7vw, 40px) clamp(8px, 4vw, 20px);
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-logo {
        width: clamp(60px, 19vw, 76px);
        margin-bottom: 10px;
    }

    .auth-card h1 {
        margin-top: 6px;
        font-size: clamp(26px, 8vw, 34px);
        line-height: 1.15;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .subtitle {
        margin-top: 8px;
        text-align: center;
        line-height: 1.45;
    }

    .microsoft-btn {
        width: 100%;
        min-height: 52px;
        height: auto;
        margin-top: clamp(30px, 9vw, 48px);
        padding: 12px 16px;
        gap: clamp(12px, 5vw, 24px);
        font-size: 18px;
        white-space: normal;
        text-align: center;
    }

    .ms-logo {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
    }

    .sign-in-text {
        font-size: 16px;
        line-height: 1.3;
    }

    .login-form {
        width: 100%;
        margin-top: 24px;
    }

    .debug-login-btn {
        margin-top: 0;
    }

    .secure-text {
        margin-top: 28px;
        line-height: 1.4;
        text-align: center;
    }

    .message-box {
        width: 100%;
        margin-top: 20px;
        overflow-wrap: anywhere;
        line-height: 1.4;
    }

    .login-footer {
        width: 100%;
        margin-top: 24px;
        padding: 0 8px;
        line-height: 1.6;
    }

    .login-footer a {
        display: inline-block;
        min-height: 44px;
        padding: 10px 4px;
    }
}

@media (max-width: 359px) {
    .auth-page {
        padding-right: max(10px, env(safe-area-inset-right));
        padding-left: max(10px, env(safe-area-inset-left));
    }

    .auth-card {
        padding: 20px 4px;
    }

    .auth-card h1 {
        font-size: 25px;
    }

    .subtitle {
        font-size: 14px;
    }

    .microsoft-btn {
        padding-right: 12px;
        padding-left: 12px;
        gap: 10px;
    }

    .secure-text {
        font-size: 13px;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .auth-page {
        justify-content: flex-start;
        padding-top: max(12px, env(safe-area-inset-top));
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }

    .auth-card {
        margin: 0 auto;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .login-logo {
        width: 52px;
        margin-bottom: 4px;
    }

    .auth-card h1 {
        margin-top: 2px;
        font-size: 25px;
    }

    .subtitle {
        margin-top: 4px;
    }

    .microsoft-btn {
        margin-top: 20px;
    }

    .secure-text {
        margin-top: 18px;
    }

    .login-footer {
        margin-top: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.modal,
.delete-modal{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.25);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.modal-content,
.delete-modal-content{
    width:320px;
    background:white;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,0.15);
}

.modal-header{
    padding:16px 20px;
    background:#fff7ed;
    color:#ff5a00;
    font-size:18px;
    font-weight:600;
    border-bottom:1px solid #fed7aa;
    text-align:center;
}

.modal-body,
.delete-modal-body{
    padding:24px 20px;
    color:#374151;
    font-size:15px;
    text-align:center;
}

.modal-footer,
.delete-modal-footer{
    padding-bottom:20px;
    padding-left:20px;
    display:flex;
    justify-content:center;
}
