/* CSS Reset and Variables */
:root {
    --text-primary: rgb(73, 80, 87);
    --text-muted: rgb(108, 117, 125);
    --border-color: rgba(0, 0, 0, 0.08);
    --input-border: rgb(206, 212, 218);
    --btn-google: #1a73e8;
    --btn-revolut: #191c1f;
    --link-color: rgb(0, 123, 255);
    --bg-white: #ffffff;
    --font-stack: 'Inter', ProximaNova, "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-stack);
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-white);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Background Effects */
.background-vignette {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 100px 30px rgba(0, 123, 255, 0.15); /* Light blue vignette */
    pointer-events: none;
    z-index: 1;
}

/* Scatter geometric shapes using simple SVG background pattern */
.background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30,10 L32,15 L28,15 Z' fill='%23add8e6' opacity='0.7'/%3E%3Ccircle cx='80' cy='30' r='1.5' fill='none' stroke='%2332cd32' stroke-width='0.8' opacity='0.5'/%3E%3Crect x='15' y='65' width='2' height='2' transform='rotate(45 15 65)' fill='none' stroke='%23ffa500' stroke-width='0.8' opacity='0.6'/%3E%3Cpath d='M85,85 L87,90 L83,90 Z' fill='none' stroke='%23add8e6' stroke-width='0.8' opacity='0.7'/%3E%3Ccircle cx='50' cy='50' r='1' fill='%23ffa500' opacity='0.4'/%3E%3C/svg%3E");
    background-size: 150px 150px;
    opacity: 0.8;
    pointer-events: none;
    z-index: 0;
}

/* Main Layout */
.login-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 444px;
    background: transparent;
    border: 1.45px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 36px;
    background-color: var(--bg-white);
    /* No distinct shadow as per the design extraction */
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-card h2 {
    font-size: 30.56px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 6px;
}

.login-header h5 {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-muted);
}

/* Buttons General */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
    position: relative;
}

.btn:hover {
    opacity: 0.9;
}

/* Social Buttons */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.btn .icon-container {
    position: absolute;
    left: 2px;
    top: 2px;
    bottom: 2px;
    width: 36px;
    background-color: var(--bg-white);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn .icon-container img{
    height: 20px;
    width: auto;
}

.google-btn {
    background-color: var(--btn-google);
    color: white;
}

.google-btn .google-logo {
    width: 18px;
    height: 18px;
}

.revolut-btn {
    background-color: var(--btn-revolut);
    color: white;
}

.revolut-btn .icon-container {
    background-color: #000;
}

.revolut-btn .revolut-logo {
    width: 22px;
    height: 22px;
}

.revolut-btn .revolut-logo path {
    fill: #ffffff; /* Make the R logo white */
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.15);
}

.divider-text {
    color: var(--text-muted);
    font-size: 14px;
    padding: 0 16px;
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    width: 100%;
}

.input-phone-group {
    display: flex;
}

.input-group input,
.input-phone-group input,
.input-phone-group select {
    width: 100%;
    height: 38px;
    border: 0.72px solid var(--input-border);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    color: var(--text-primary);
    background-color: var(--bg-white);
    outline: none;
    transition: border-color 0.2s;
}

.input-phone-group select{
    width: 30%;
    flex-basis: 30%;
}

.input-phone-group input{
    width: 70%;
    flex-basis: 70%;
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.input-group input:focus {
    border-color: var(--btn-google);
}

.forgot-password {
    text-align: right;
    margin-top: 4px;
    margin-bottom: 8px;
}

.forgot-password a {
    color: var(--link-color);
    font-size: 14px;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Primary Sign In Button */
.primary-btn {
    background-color: var(--btn-google);
    color: white;
    height: 38px;
}

/* Footer Link */
.signup-link {
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.signup-link a {
    color: var(--link-color);
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}
