:root {
    --orius-primary: #6227f2;
    --orius-primary-hover: #7c3af5;
    --orius-deep-purple: #260d2b;
    --orius-container-bg: #321A37;
    --orius-border: #4a4160;
    --orius-green: #3ccc96;
    --orius-green-hover: #2fb582;
    --orius-cyan: #42cdcd;
    --orius-orange: #ff693b;
    --orius-text-secondary: #e2e8f0;
    --orius-placeholder: #a0a0a0;
}

* {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

html {
    height: 100%;
}

body {
    height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--orius-deep-purple);
}

.wrapper {
    height: 100vh;
    width: 100%;
    padding: 120px 25px 25px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 3rem;
    border-radius: 16px;
    max-width: min(22rem, calc(100vw - 50px));
    min-width: calc(100vw - 100px);
    background-color: var(--orius-container-bg);
}

.wrapper > .logo {
    position: absolute;
    top: 2rem;
    left: 2rem;
}

.logo svg {
    height: 3rem;
    width: auto;
}

.container h1 {
    color: white;
    font-weight: 600;
    margin: 0 1rem 1rem;
}

.container p {
    color: var(--orius-text-secondary);
    margin: 0.5rem 0;
    line-height: 1.5;
}

/* Sign-in form */

.orius {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* Code entry inputs */
.code-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.code-group {
    display: flex;
    gap: 0.5rem;
}

.code-digit {
    width: 3rem !important;
    height: 3rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    background-color: var(--orius-deep-purple);
    border: 1px solid var(--orius-deep-purple);
    color: white;
}

@media (min-width: 400px) {
    .container {
        min-width: 18rem;
    }
}

@media (max-width: 375px) {
    .container {
        padding: 2rem;
    }

    .container h1 {
        font-size: 24px;
    }

    .code-digit {
        width: 2.5rem !important;
        height: 2.5rem;
        font-size: 1.25rem;
    }

    .code-group {
        gap: 0.25rem;
    }

    .code-inputs {
        gap: 0.75rem;
    }
}

.code-digit:focus {
    outline: none;
    border: 1px solid var(--orius-primary);
    box-shadow: 0 0 0 2px rgba(98, 39, 242, 0.3);
}

.code-separator {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    padding: 0 0.25rem;
}

input[type="email"], input[type="text"] {
    background-color: var(--orius-deep-purple);
    border: 1px solid var(--orius-deep-purple);
    border-radius: 12px;
    padding: 1rem;
    color: white;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
}

input[type="email"]::placeholder, input[type="text"]::placeholder {
    color: var(--orius-placeholder);
}

input[type="email"]:focus, input[type="text"]:focus {
    outline: none;
    border: 1px solid var(--orius-primary);
    box-shadow: 0 0 0 2px rgba(98, 39, 242, 0.3);
}

input[type="submit"], button[type="submit"] {
    background: var(--orius-primary);
    border: 1px solid var(--orius-primary);
    border-radius: 12px;
    padding: 1rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
    font-weight: 600;
}

input[type="submit"]:hover, button[type="submit"]:hover {
    background: var(--orius-primary-hover);
    border: 1px solid var(--orius-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(98, 39, 242, 0.3);
}

.separator {
    display: flex;
    width: 100%;
    margin: 1rem;
    align-items: center;
    text-align: center;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--orius-border);
}

.separator:not(:empty)::before {
    margin-right: 0.5em;
}

.separator:not(:empty)::after {
    margin-left: 0.5em;
}

.success {
    background-color: var(--orius-green);
    border: 1px solid var(--orius-green);
    color: white;
    font-weight: 600;
}

.error {
    color: var(--orius-orange);
    font-weight: 600;
}

.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}



form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}



/* Home page  */

.user-info {
    background-color: var(--orius-deep-purple);
    border-radius: 12px;
    padding: 1.5rem;
}

.user-email {
    font-weight: 600;
    color: #fff;
    font-size: 1.1rem;
}

.user-name {
    color: var(--orius-cyan);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.sign-out-btn {
    background-color: var(--orius-primary);
    color: white;
    border: 1px solid var(--orius-primary);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
    display: inline-block;
    margin-top: 1.5rem;
}

.sign-out-btn:hover {
    background-color: var(--orius-primary-hover);
    border: 1px solid var(--orius-primary-hover);
}
