/* Page Specific Styles for Login - Rakuten Style Refinement */
:root {
    --primary-blue: #0056b3;
    /* Rakuten Blue-ish */
    --hover-blue: #004494;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #cccccc;
    --focus-border: #66afe9;
    --focus-shadow: rgba(102, 175, 233, 0.6);
    --font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    /* Standard corporate font */
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    background-color: #f0f0f0;
}

/* Background Image */
.login-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070&auto=format&fit=crop');
    /* Corporate building */
    background-size: cover;
    background-position: center;
}

.login-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Blueish map overlay effect */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 100, 255, 0.1) 100%),
        url('https://www.transparenttextures.com/patterns/cubes.png');
    /* Pattern overlay if available */
    opacity: 0.8;
}

/* Centered Container */
.login-container-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Login Card */
.login-card {
    background: white;
    width: 440px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* No sharp borders, keeping it clean */
    text-align: center;
    position: relative;
}

/* Logo */
.logo-container {
    margin-bottom: 20px;
}

.brand-logo-img {
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Typography */
.login-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: normal;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 5px;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    /* Classic border */
    border-radius: 3px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: var(--focus-border);
    box-shadow: 0 0 5px var(--focus-shadow);
}

/* Checkbox */
.form-options {
    text-align: left;
    margin-bottom: 20px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #333;
}

.custom-checkbox input {
    margin-right: 8px;
}

/* Buttons */
.login-btn {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 15px;
}

.login-btn:hover {
    background-color: var(--hover-blue);
}

/* Links */
.form-links {
    text-align: left;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-links a {
    color: #555;
    text-decoration: underline;
}

.form-links a:hover {
    color: #000;
}

/* Google Button (Simple) */
.sso-section hr {
    margin: 20px 0;
    border: none;
    border-top: 1px solid #eee;
}

.google-btn-simple {
    display: block;
    text-align: center;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
}

.google-btn-simple:hover {
    text-decoration: underline;
}


/* Step 2 Header */
.step2-header {
    display: flex;
    align-items: center;
    /* Vertically align button and username */
    justify-content: flex-start;
    /* Align entire header to the left */
    margin-bottom: 20px;
    /* Space below header */
    width: 100%;
    /* Ensure it spans full width */
}

/* Back Button */
.back-link {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #666;
    padding: 5px;
    /* Add padding for easier clicking */
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    /* Space between back arrow and username */
}

.back-link:hover {
    color: #333;
}

/* User Display */
.user-display {
    font-weight: bold;
    color: #333;
    font-size: 1rem;
    /* Adjust font size if needed */
    flex-grow: 1;
    /* Allow username to take up remaining space if desired, though usually not needed here */
    text-align: center;
    /* Center username if that's the desired look, or remove for left align */
    margin-right: 30px;
    /* Counter-balance the back button to optically center the username if text-align is center */
}




/* Error Message */
.error-msg {
    background-color: #fef2f2;
    color: #b91c1c;
    padding: 10px;
    border: 1px solid #fecaca;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Animation */
.login-step {
    display: none;
}

.login-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 500px) {
    .login-bg {
        background: #f0f0f0;
        /* simplified background */
    }

    .login-container-centered {
        padding: 20px;
        align-items: flex-start;
        padding-top: 100px;
    }

    .login-card {
        width: 100%;
        box-shadow: none;
        padding: 20px;
    }
}