* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', 'Lucida Grande', 'Roboto', 'Ebrima', 'Nirmala UI', 'Gadugi', 'Segoe Xbox Symbol', 'Segoe UI Symbol', 'Meiryo UI', 'Khmer UI', 'Tunga', 'Lao UI', 'Raavi', 'Iskoola Pota', 'Latha', 'Leelawadee', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'Estrangelo Edessa', 'Microsoft Himalaya', 'Microsoft New Tai Lue', 'Microsoft PhagsPa', 'Microsoft Tai Le', 'Microsoft Yi Baiti', 'Mongolian Baiti', 'MV Boli', 'Myanmar Text', 'Cambria Math';
    background-color: #f2f2f2;
    background-image: url('https://aadcdn.msauth.net/shared/1.0/content/images/backgrounds/2_bc3d32a696895f78c19df6c717586a5d.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #1b1b1b;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.4);
    z-index: -1;
}

.login-container {
    background-color: white;
    width: 100%;
    max-width: 440px;
    padding: 44px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    min-height: 338px;
    position: relative;
}

.logo {
    margin-bottom: 24px;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1b1b1b;
}

.step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.input-group {
    margin-bottom: 16px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 8px 0;
    font-size: 15px;
    border: none;
    border-bottom: 1px solid #666;
    outline: none;
    transition: border-bottom-color 0.2s;
    font-family: inherit;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    border-bottom: 1px solid #0067b8;
}

input::placeholder {
    color: #666;
}

.links {
    margin-bottom: 32px;
    font-size: 13px;
    line-height: 1.5;
}

.links a {
    color: #0067b8;
    text-decoration: none;
}

.links a:hover {
    text-decoration: underline;
}

.button-group {
    display: flex;
    justify-content: flex-end;
}

.btn {
    padding: 6px 32px;
    font-size: 15px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    min-width: 108px;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: #0067b8;
    color: white;
}

.btn-primary:hover {
    background-color: #005da6;
}

.btn-secondary {
    background-color: #e1e1e1;
    color: black;
}

.btn-secondary:hover {
    background-color: #d4d4d4;
}

.user-identity {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 15px;
    color: #1b1b1b;
}

.back-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 8px;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1b1b1b;
}

.back-btn:hover {
    background-color: #f2f2f2;
}

.error-message {
    color: #e81123;
    font-size: 15px;
    margin-bottom: 16px;
}

.mfa-options-list {
    margin-top: 24px;
}

.mfa-option-btn {
    display: flex;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 12px 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    color: #1b1b1b;
}

.mfa-option-btn:hover {
    background-color: #f2f2f2;
}

.mfa-icon {
    font-size: 24px;
    margin-right: 16px;
}

.mfa-instructions {
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.4;
}

.text-center {
    text-align: center;
}

.number-display {
    font-size: 64px;
    font-weight: 300;
    color: #1b1b1b;
    margin: 32px 0;
}

.mfa-subtext {
    font-size: 13px;
    margin-top: 32px;
}

.mfa-subtext a {
    color: #0067b8;
    text-decoration: none;
}

.success-icon {
    margin-bottom: 24px;
}

/* Phone Simulator styling */
.phone-simulator {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 600px;
    background-color: #fff;
    border-radius: 36px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 8px solid #333;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 100;
    animation: slideInRight 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideInRight {
    from { opacity: 0; transform: translate(50px, -50%); }
    to { opacity: 1; transform: translate(0, -50%); }
}

.phone-header {
    background-color: #0078d4;
    color: white;
    padding: 16px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.phone-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.phone-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}

.phone-email {
    color: #666;
    font-size: 14px;
    margin-bottom: 24px;
    word-break: break-all;
}

.phone-input-area {
    margin-bottom: auto;
}

.phone-input-area p {
    font-size: 14px;
    margin-bottom: 16px;
}

#phone-number-input {
    width: 100%;
    font-size: 32px;
    text-align: center;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    letter-spacing: 4px;
}

.phone-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.phone-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.phone-btn-deny {
    background-color: #f3f2f1;
    color: #323130;
}

.phone-btn-approve {
    background-color: #0078d4;
    color: white;
}

.totp-code {
    font-size: 42px;
    text-align: center;
    letter-spacing: 4px;
    margin: 40px 0;
    font-family: monospace;
    color: #0078d4;
}

.totp-timer {
    height: 4px;
    background-color: #f3f2f1;
    border-radius: 2px;
    overflow: hidden;
}

.totp-timer-bar {
    height: 100%;
    background-color: #0078d4;
    width: 100%;
    transition: width 1s linear;
}

@media (max-width: 800px) {
    .phone-simulator {
        position: relative;
        right: 0;
        top: 0;
        transform: none;
        margin: 24px auto 0;
        height: auto;
        min-height: 400px;
    }
    
    body {
        flex-direction: column;
        height: auto;
        padding: 24px;
    }
}
