@import url(./font.css);

:root {
    --primary-color: #2563EB;       /* Modern Blue */
    --primary-dark: #1E40AF;        /* Darker Blue */
    --primary-light: #DBEAFE;       /* Very Light Blue */
    --color-white: #fff;
    --color-black: #000;
    --text-color: #333;
    --input-bg: #f9f9f9;
    --shadow-soft: 0 10px 30px rgba(37, 99, 235, 0.15);
    --shadow-button: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/*-------------------- Global Reset ----------------*/

*,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'taj', sans-serif;
    font-size: 16px;
    direction: rtl;
}



main {
    display: flex;
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    justify-content: flex-end; /* ✅ changed */
    align-items: center;
    padding-right: 60px; /* optional but recommended */
}

/*-------------------- Background ----------------*/
/*
 * main {
    display: flex;
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    justify-content:  flex-start;
	padding-left: 60px;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}
*/
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.background video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* makes it behave like background-size: cover */
}


.background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.back {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.back svg {
    width: 100%;
    height: 100%;
}

/*-------------------- Layout Columns ----------------*/

.col {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    padding: 20px;
    z-index: 10;
	align-items: flex-end;
}

/*---------------- Card System ----------------*/

.view-wrapper {
    width: 100%;
    max-width: 420px;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

/* Base View State: Hidden to the Right */
.view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    /* Default position is off-screen to the right (120%) */
    transform: translateX(120%); 
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

/* View Hidden to the Left */
.view.left {
    transform: translateX(-120%);
    opacity: 0;
}

/* View Hidden to the Right (Explicit) */
.view.right {
    transform: translateX(120%);
    opacity: 0;
}

/* Active View (Centered) - MUST BE LAST in CSS to override others */
.view.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

/* Card Styling */
.box {
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    width: 100%;
}

.body-box {
    padding: 0;
}

.form {
    padding: 30px;
}

/*---------------- Header Styling ----------------*/

.header-form {
    text-align: center;
    margin-bottom: 25px;
}

.icon-header {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: var(--primary-light);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--primary-color);
    overflow: hidden;
}

.icon-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-form h1 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin: 0;
    font-weight: bold;
}

.header-form h5 {
    font-size: 1rem;
    color: #666;
    margin-top: 5px;
    font-weight: normal;
}

/*---------------- Inputs ----------------*/

.group-input {
    display: flex;
    align-items: stretch;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.group-input .icon {
    width: 45px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.group-input .input {
    flex: 1;
    background: var(--input-bg);
    border: 1px solid #e0e0e0;
    border-right: none;
    display: flex;
    align-items: center;
}

.group-input .input input {
    width: 100%;
    height: 100%;
    padding: 12px 15px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--color-black);
    outline: none;
}

/*---------------- Buttons ----------------*/

.button {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.button-signin {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-button);
}

.button-signin:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.button-signin-google {
    background: white;
    color: #444;
    border: 1px solid #ddd;
	border-color: blue;
}

.button-signin-google:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
	color: white;
}

.button-nav {
    background: white;
    color: var(--primary-dark);
    border: 2px solid var(--primary-color);
    font-weight: 700;
}

.button-nav:hover {
    background: var(--primary-light);
}

.button-back {
    background: #f0f0f0;
    color: #555;
    margin-top: 20px;
}

.button-back:hover {
    background: #e0e0e0;
}

/*---------------- Info Group (Services/Links) ----------------*/

.info-group {
    margin-bottom: 20px;
    text-align: right;
}

.info-group h2 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 5px;
}

.info-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-group ul li {
    position: relative;
    padding-right: 20px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #444;
}

.info-group ul li::before {
    content: '•';
    color: var(--primary-color);
    font-size: 1.5rem;
    position: absolute;
    right: 0;
    top: -4px;
}

.info-group.links a {
    color: var(--primary-dark);
    font-weight: 700;
}

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

/*---------------- Footer Links ----------------*/

.extra-links {
    margin-top: 20px;
    text-align: center;
}

.extra-links a {
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 0.9rem;
    margin: 0 10px;
}

/*---------------- Responsive Design ----------------*/

@media screen and (max-width: 1000px) {
    main {
        padding: 20px;
    }
    .view-wrapper {
        max-width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .header-form h1 { font-size: 2rem; }
    .form { padding: 20px; }
    .button { font-size: 0.9rem; }
}